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
This commit is contained in:
Chris Lattner
2004-03-14 19:27:19 +00:00
parent 39354c99a1
commit be21ca54e0
5 changed files with 92 additions and 129 deletions

View File

@@ -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