Add a boolean flag to delete this function from module, leaving the rest behind.
authorMisha Brukman <brukman+llvm@gmail.com>
Thu, 22 Apr 2004 22:51:37 +0000 (22:51 +0000)
committerMisha Brukman <brukman+llvm@gmail.com>
Thu, 22 Apr 2004 22:51:37 +0000 (22:51 +0000)
Useful in manual debugging when bugpoint isn't quite up to snuff.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13110 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Transforms/IPO.h

index 24fbad661ff2ceee474c4209d017fc62b18ec81c..7db830251532d4462ac0102818a3eb56fc3a297b 100644 (file)
@@ -66,10 +66,11 @@ Pass *createGlobalDCEPass();
 
 
 //===----------------------------------------------------------------------===//
-/// createFunctionExtractionPass - This pass deletes as much of the module as
-/// possible, except for the function specified.
+/// createFunctionExtractionPass - If isolateFn is true, this pass deletes as 
+/// much of the module as possible, except for the function specified.
+/// Otherwise, it deletes the given function, leaving everything else intact.
 ///
-Pass *createFunctionExtractionPass(Function *F);
+Pass *createFunctionExtractionPass(Function *F, bool isolateFn = true);
 
 
 //===----------------------------------------------------------------------===//