From: Misha Brukman Date: Thu, 22 Apr 2004 22:51:37 +0000 (+0000) Subject: Add a boolean flag to delete this function from module, leaving the rest behind. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=127a3e092bdbed4ed7e889e972132cf51980cfca;p=oota-llvm.git 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 --- 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); //===----------------------------------------------------------------------===//