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/IPO/StripSymbols.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/IPO/StripSymbols.cpp')
-rw-r--r-- | lib/Transforms/IPO/StripSymbols.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/Transforms/IPO/StripSymbols.cpp b/lib/Transforms/IPO/StripSymbols.cpp index db4387fa54..00cfc513b6 100644 --- a/lib/Transforms/IPO/StripSymbols.cpp +++ b/lib/Transforms/IPO/StripSymbols.cpp @@ -94,11 +94,11 @@ bool StripSymbols::runOnModule(Module &M) { // Strip debug info in the module if it exists. To do this, we remove // llvm.dbg.func.start, llvm.dbg.stoppoint, and llvm.dbg.region.end calls, and // any globals they point to if now dead. - Function *FuncStart = M.getNamedFunction("llvm.dbg.func.start"); - Function *StopPoint = M.getNamedFunction("llvm.dbg.stoppoint"); - Function *RegionStart = M.getNamedFunction("llvm.dbg.region.start"); - Function *RegionEnd = M.getNamedFunction("llvm.dbg.region.end"); - Function *Declare = M.getNamedFunction("llvm.dbg.declare"); + Function *FuncStart = M.getFunction("llvm.dbg.func.start"); + Function *StopPoint = M.getFunction("llvm.dbg.stoppoint"); + Function *RegionStart = M.getFunction("llvm.dbg.region.start"); + Function *RegionEnd = M.getFunction("llvm.dbg.region.end"); + Function *Declare = M.getFunction("llvm.dbg.declare"); if (!FuncStart && !StopPoint && !RegionStart && !RegionEnd && !Declare) return true; |