Helper function to internalize functions and variables in a Module.
Declared in <llvm/Transforms/IPO/Internalize.h>
bool
internalizeModule(
Module& TheModule,
std::function<bool(GlobalValue const&)> MustPreserveGV);
True if any changes were made.
| Name | Description |
|---|---|
| TheModule | Module whose functions and variables are internalized. |
| MustPreserveGV | Callback that returns true for globals that must keep their linkage. |