LLVM 20.0.0git
Public Member Functions | List of all members
llvm::orc::SymbolLinkagePromoter Class Reference

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.
 

Detailed Description

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.

Member Function Documentation

◆ operator()()

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.


The documentation for this class was generated from the following files: