ΒΆllvm::ModulePass* createGVExtractionPass(
std::vector<GlobalValue*>& GVs,
bool deleteFn = false,
bool keepConstInit = false)
llvm::ModulePass* createGVExtractionPass(
std::vector<GlobalValue*>& GVs,
bool deleteFn = false,
bool keepConstInit = false)
Description
createGVExtractionPass - If deleteFn is true, this pass deletes the specified global values. Otherwise, it deletes as much of the module as possible, except for the global values specified. If keepConstInit is true, the initializers of global constants are not deleted even if they are unused.
Declared at: llvm/include/llvm/Transforms/IPO.h:95
Parameters
- std::vector<GlobalValue*>& GVs
- bool deleteFn = false
- bool keepConstInit = false