diff options
author | Jeff Cohen <jeffc@jolt-lang.org> | 2007-04-20 22:40:10 +0000 |
---|---|---|
committer | Jeff Cohen <jeffc@jolt-lang.org> | 2007-04-20 22:40:10 +0000 |
commit | 09b362cee6fdbec771e5d1da4b6927456849ef8b (patch) | |
tree | 43ef077cea5de1da64bc5e8b11ebb4c995b85c81 /lib/Transforms/Utils/LowerInvoke.cpp | |
parent | 2c639add5f54ba0d0d59771e16d0582f6c59b8be (diff) |
Comment out usage of write() for now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36287 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/LowerInvoke.cpp')
-rw-r--r-- | lib/Transforms/Utils/LowerInvoke.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Transforms/Utils/LowerInvoke.cpp b/lib/Transforms/Utils/LowerInvoke.cpp index a1bd065df8..e0332d28f7 100644 --- a/lib/Transforms/Utils/LowerInvoke.cpp +++ b/lib/Transforms/Utils/LowerInvoke.cpp @@ -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) { |