LLVM 20.0.0git
|
Promotes private symbols to global hidden, and renames to prevent clashes with other promoted symbols. More...
#include "llvm/ExecutionEngine/Orc/IndirectionUtils.h"
Public Member Functions | |
std::vector< GlobalValue * > | operator() (Module &M) |
Promote symbols in the given module. | |
Promotes private symbols to global hidden, and renames to prevent clashes with other promoted symbols.
The same SymbolPromoter instance should be used for all symbols to be added to a single JITDylib.
Definition at line 511 of file IndirectionUtils.h.
std::vector< GlobalValue * > llvm::orc::SymbolLinkagePromoter::operator() | ( | Module & | M | ) |
Promote symbols in the given module.
Returns the set of global values that have been renamed/promoted.
Definition at line 309 of file IndirectionUtils.cpp.
References llvm::GlobalValue::ExternalLinkage, llvm::GlobalValue::HiddenVisibility, and llvm::GlobalValue::None.