mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-12 22:26:14 +00:00
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
This commit is contained in:
parent
123f8fec94
commit
127a3e092b
@ -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);
|
||||
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
Loading…
Reference in New Issue
Block a user