summaryrefslogtreecommitdiff
path: root/tools/bugpoint/BugDriver.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-03-14 19:27:19 +0000
committerChris Lattner <sabre@nondot.org>2004-03-14 19:27:19 +0000
commitbe21ca54e08339ede5dd4bbb882182d22e274988 (patch)
tree3fc14c02ac5bbecec325cf6451f776ddefd91f82 /tools/bugpoint/BugDriver.h
parent39354c99a158685d8bc91b0836c283e936a29cb2 (diff)
downloadllvm-be21ca54e08339ede5dd4bbb882182d22e274988.tar.gz
llvm-be21ca54e08339ede5dd4bbb882182d22e274988.tar.bz2
llvm-be21ca54e08339ede5dd4bbb882182d22e274988.tar.xz
Refactor all of the "splitting a module into two pieces" code to avoid
code duplication. Also, don't use ReduceMiscompilingFunctions::TestFuncs to print out the final message. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12387 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint/BugDriver.h')
-rw-r--r--tools/bugpoint/BugDriver.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/bugpoint/BugDriver.h b/tools/bugpoint/BugDriver.h
index 297bab53b4..f15481fde7 100644
--- a/tools/bugpoint/BugDriver.h
+++ b/tools/bugpoint/BugDriver.h
@@ -231,6 +231,11 @@ std::string getPassesString(const std::vector<const PassInfo*> &Passes);
//
void DeleteFunctionBody(Function *F);
+/// SplitFunctionsOutOfModule - Given a module and a list of functions in the
+/// module, split the functions OUT of the specified module, and place them in
+/// the new module.
+Module *SplitFunctionsOutOfModule(Module *M, const std::vector<Function*> &F);
+
} // End llvm namespace
#endif