1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 11:33:24 +02:00

Comment out usage of write() for now.

llvm-svn: 36287
This commit is contained in:
Jeff Cohen 2007-04-20 22:40:10 +00:00
parent 36b206ed45
commit 2afa206eb3
2 changed files with 6 additions and 4 deletions

View File

@ -355,10 +355,6 @@ bool X86IntelAsmPrinter::doInitialization(Module &M) {
if (I->hasDLLImportLinkage()) {
O << "__imp_";
}
// Microsoft sticks an extra _ in front of "_write" (whether LLVM should
// hard-code usage of a Unix API is another question).
if (Name == "_write")
Name = "__write";
O << Name << ":near\n";
}

View File

@ -149,8 +149,12 @@ bool LowerInvoke::doInitialization(Module &M) {
// We need the 'write' and 'abort' functions for both models.
AbortFn = M.getOrInsertFunction("abort", Type::VoidTy, (Type *)0);
#if 0 // "write" is Unix-specific.. code is going away soon anyway.
WriteFn = M.getOrInsertFunction("write", Type::VoidTy, Type::Int32Ty,
VoidPtrTy, Type::Int32Ty, (Type *)0);
#else
WriteFn = 0;
#endif
return true;
}
@ -185,6 +189,7 @@ void LowerInvoke::createAbortMessage(Module *M) {
void LowerInvoke::writeAbortMessage(Instruction *IB) {
#if 0
if (AbortMessage == 0)
createAbortMessage(IB->getParent()->getParent()->getParent());
@ -194,6 +199,7 @@ void LowerInvoke::writeAbortMessage(Instruction *IB) {
Args[1] = AbortMessage;
Args[2] = ConstantInt::get(Type::Int32Ty, AbortMessageLength);
(new CallInst(WriteFn, Args, 3, "", IB))->setTailCall();
#endif
}
bool LowerInvoke::insertCheapEHSupport(Function &F) {