LLVM  10.0.0svn
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. More...
 

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 427 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 254 of file IndirectionUtils.cpp.

References llvm::GlobalValue::ExternalLinkage, llvm::Module::global_values(), llvm::GlobalValue::HiddenVisibility, and llvm::GlobalValue::None.


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