[llvm-commits] CVS: llvm/lib/Transforms/Utils/LowerInvoke.cpp
Jeff Cohen
jeffc at jolt-lang.org
Fri Apr 20 15:40:32 PDT 2007
Changes in directory llvm/lib/Transforms/Utils:
LowerInvoke.cpp updated: 1.58 -> 1.59
---
Log message:
Comment out usage of write() for now.
---
Diffs of the changes: (+6 -0)
LowerInvoke.cpp | 6 ++++++
1 files changed, 6 insertions(+)
Index: llvm/lib/Transforms/Utils/LowerInvoke.cpp
diff -u llvm/lib/Transforms/Utils/LowerInvoke.cpp:1.58 llvm/lib/Transforms/Utils/LowerInvoke.cpp:1.59
--- llvm/lib/Transforms/Utils/LowerInvoke.cpp:1.58 Mon Apr 16 13:10:23 2007
+++ llvm/lib/Transforms/Utils/LowerInvoke.cpp Fri Apr 20 17:40:10 2007
@@ -149,8 +149,12 @@
// 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::writeAbortMessage(Instruction *IB) {
+#if 0
if (AbortMessage == 0)
createAbortMessage(IB->getParent()->getParent()->getParent());
@@ -194,6 +199,7 @@
Args[1] = AbortMessage;
Args[2] = ConstantInt::get(Type::Int32Ty, AbortMessageLength);
(new CallInst(WriteFn, Args, 3, "", IB))->setTailCall();
+#endif
}
bool LowerInvoke::insertCheapEHSupport(Function &F) {
More information about the llvm-commits
mailing list