Move the function extractor pass from tools/extract into lib/Xform/IPO

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4759 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner committed 2002-11-19 18:42:59 +00:00
1 parent 9a641b4bce
commit 5113eb0c52
4 files changed
+109 -182

No files matched your search

+8
View File
@@ -9,6 +9,7 @@
#define LLVM_TRANSFORMS_IPO_H
class Pass;
class Function;
//===----------------------------------------------------------------------===//
// createConstantMergePass - This function returns a new pass that merges
@@ -34,6 +35,13 @@ Pass *createDeadTypeEliminationPass();
Pass *createGlobalDCEPass();
//===----------------------------------------------------------------------===//
// createFunctionExtractionPass - This pass deletes as much of the module as
// possible, except for the function specified.
//
Pass *createFunctionExtractionPass(Function *F);
//===----------------------------------------------------------------------===//
// FunctionResolvingPass - Go over the functions that are in the module and
// look for functions that have the same name. More often than not, there will