From 127a3e092bdbed4ed7e889e972132cf51980cfca Mon Sep 17 00:00:00 2001 From: Misha Brukman Date: Thu, 22 Apr 2004 22:51:37 +0000 Subject: [PATCH] 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 --- include/llvm/Transforms/IPO.h | 7 ++++--- 1 file 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); //===----------------------------------------------------------------------===// -- 2.34.1