ΒΆllvm::ModulePass* createInternalizePass(
std::function<bool(const GlobalValue&)>
MustPreserveGV)
llvm::ModulePass* createInternalizePass(
std::function<bool(const GlobalValue&)>
MustPreserveGV)
Description
createInternalizePass - This pass loops over all of the functions in the input module, internalizing all globals (functions and variables) it can. / Before internalizing a symbol, the callback \p MustPreserveGV is invoked and gives to the client the ability to prevent internalizing specific symbols. The symbol in DSOList are internalized if it is safe to drop them from the symbol table. Note that commandline options that are used with the above function are not used now!
Declared at: llvm/include/llvm/Transforms/IPO.h:130
Parameters
- std::function<bool(const GlobalValue&)> MustPreserveGV