1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 12:02:58 +02: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.

llvm-svn: 13110
This commit is contained in:
Misha Brukman 2004-04-22 22:51:37 +00:00
parent 1e9b5281d0
commit 94f0180757

View File

@ -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);
//===----------------------------------------------------------------------===//