aboutsummaryrefslogtreecommitdiffstats
path: root/tools/bugpoint/CrashDebugger.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-02-05 21:19:13 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-02-05 21:19:13 +0000
commit688b0490e22eb67623f5aaa24406209be74efcb2 (patch)
tree69eb17e5f7e3136a7b336ed6c5d0a2ed5692a44d /tools/bugpoint/CrashDebugger.cpp
parentcdedc3b336ff7552e439723fdb96dda68b1dbbdb (diff)
downloadexternal_llvm-688b0490e22eb67623f5aaa24406209be74efcb2.zip
external_llvm-688b0490e22eb67623f5aaa24406209be74efcb2.tar.gz
external_llvm-688b0490e22eb67623f5aaa24406209be74efcb2.tar.bz2
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 'tools/bugpoint/CrashDebugger.cpp')
-rw-r--r--tools/bugpoint/CrashDebugger.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/bugpoint/CrashDebugger.cpp b/tools/bugpoint/CrashDebugger.cpp
index b597d82..5596839 100644
--- a/tools/bugpoint/CrashDebugger.cpp
+++ b/tools/bugpoint/CrashDebugger.cpp
@@ -194,7 +194,7 @@ bool ReduceCrashingFunctions::TestFuncs(std::vector<Function*> &Funcs) {
//if main isn't present, claim there is no problem
if (KeepMain && find(Funcs.begin(), Funcs.end(),
- BD.getProgram()->getMainFunction()) == Funcs.end())
+ BD.getProgram()->getFunction("main")) == Funcs.end())
return false;
// Clone the program to try hacking it apart...