summaryrefslogtreecommitdiff
path: root/include/llvm/Transforms
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2004-04-22 22:51:37 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2004-04-22 22:51:37 +0000
commit127a3e092bdbed4ed7e889e972132cf51980cfca (patch)
treeb6bfcaa4ae0278c08287975941edbeca6e2ebf20 /include/llvm/Transforms
parent123f8fec94d1f22d876382897231868c62f8eabb (diff)
Add a boolean flag to delete this function from module, leaving the rest behind.
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
Diffstat (limited to 'include/llvm/Transforms')
-rw-r--r--include/llvm/Transforms/IPO.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/llvm/Transforms/IPO.h b/include/llvm/Transforms/IPO.h
index 24fbad661ff..7db83025153 100644
--- a/include/llvm/Transforms/IPO.h
+++ b/include/llvm/Transforms/IPO.h
@@ -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);
//===----------------------------------------------------------------------===//