llvm::internalizeModule

Helper function to internalize functions and variables in a Module.

Synopsis

Declared in <llvm/Transforms/IPO/Internalize.h>

bool
internalizeModule(
    Module& TheModule,
    std::function<bool(GlobalValue const&)> MustPreserveGV);

Return Value

True if any changes were made.

Parameters

NameDescription
TheModuleModule whose functions and variables are internalized.
MustPreserveGVCallback that returns true for globals that must keep their linkage.