[llvm-commits] CVS: llvm/lib/Transforms/Scalar/LowerGC.cpp
Reid Spencer
reid at x10sys.com
Mon Feb 5 13:19:53 PST 2007
Changes in directory llvm/lib/Transforms/Scalar:
LowerGC.cpp updated: 1.20 -> 1.21
---
Log message:
For PR411: http://llvm.org/PR411 :
Adjust to changes in Module interface:
getMainFunction() -> getFunction("main")
getNamedFunction(X) -> getFunction(X)
---
Diffs of the changes: (+3 -3)
LowerGC.cpp | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
Index: llvm/lib/Transforms/Scalar/LowerGC.cpp
diff -u llvm/lib/Transforms/Scalar/LowerGC.cpp:1.20 llvm/lib/Transforms/Scalar/LowerGC.cpp:1.21
--- llvm/lib/Transforms/Scalar/LowerGC.cpp:1.20 Wed Jan 31 14:08:52 2007
+++ llvm/lib/Transforms/Scalar/LowerGC.cpp Mon Feb 5 15:19:13 2007
@@ -98,9 +98,9 @@
/// doInitialization - If this module uses the GC intrinsics, find them now. If
/// not, this pass does not do anything.
bool LowerGC::doInitialization(Module &M) {
- GCRootInt = M.getNamedFunction("llvm.gcroot");
- GCReadInt = M.getNamedFunction("llvm.gcread");
- GCWriteInt = M.getNamedFunction("llvm.gcwrite");
+ GCRootInt = M.getFunction("llvm.gcroot");
+ GCReadInt = M.getFunction("llvm.gcread");
+ GCWriteInt = M.getFunction("llvm.gcwrite");
if (!GCRootInt && !GCReadInt && !GCWriteInt) return false;
PointerType *VoidPtr = PointerType::get(Type::Int8Ty);
More information about the llvm-commits
mailing list