diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-02-05 21:19:13 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-02-05 21:19:13 +0000 |
commit | 688b0490e22eb67623f5aaa24406209be74efcb2 (patch) | |
tree | 69eb17e5f7e3136a7b336ed6c5d0a2ed5692a44d /lib/Transforms/Scalar/LowerGC.cpp | |
parent | cdedc3b336ff7552e439723fdb96dda68b1dbbdb (diff) |
For PR411:
Adjust to changes in Module interface:
getMainFunction() -> getFunction("main")
getNamedFunction(X) -> getFunction(X)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33922 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/LowerGC.cpp')
-rw-r--r-- | lib/Transforms/Scalar/LowerGC.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Transforms/Scalar/LowerGC.cpp b/lib/Transforms/Scalar/LowerGC.cpp index 7c88aa2902..20636d45a2 100644 --- a/lib/Transforms/Scalar/LowerGC.cpp +++ b/lib/Transforms/Scalar/LowerGC.cpp @@ -98,9 +98,9 @@ const StructType *LowerGC::getRootRecordType(unsigned NumRoots) { /// 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); |