aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 24fbad661f..7db8302515 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);
//===----------------------------------------------------------------------===//