LLVM
15.0.0git
|
#include "llvm/IR/Mangler.h"
Public Member Functions | |
void | getNameWithPrefix (raw_ostream &OS, const GlobalValue *GV, bool CannotUsePrivateLabel) const |
Print the appropriate prefix and the specified global variable's name. More... | |
void | getNameWithPrefix (SmallVectorImpl< char > &OutName, const GlobalValue *GV, bool CannotUsePrivateLabel) const |
Static Public Member Functions | |
static void | getNameWithPrefix (raw_ostream &OS, const Twine &GVName, const DataLayout &DL) |
Print the appropriate prefix and the specified name as the global variable name. More... | |
static void | getNameWithPrefix (SmallVectorImpl< char > &OutName, const Twine &GVName, const DataLayout &DL) |
void Mangler::getNameWithPrefix | ( | raw_ostream & | OS, |
const GlobalValue * | GV, | ||
bool | CannotUsePrivateLabel | ||
) | const |
Print the appropriate prefix and the specified global variable's name.
If the global variable doesn't have a name, this fills in a unique name for the global.
Definition at line 119 of file Mangler.cpp.
References addByteCountSuffix(), llvm::CallingConv::C, DL, llvm::GlobalValue::getAliaseeObject(), llvm::Function::getCallingConv(), llvm::Module::getDataLayout(), llvm::Function::getFunctionType(), llvm::Value::getName(), getNameWithPrefixImpl(), llvm::FunctionType::getNumParams(), llvm::GlobalValue::getParent(), hasByteCountSuffix(), llvm::Value::hasName(), llvm::GlobalValue::hasPrivateLinkage(), llvm::Function::hasStructRetAttr(), llvm::FunctionType::isVarArg(), llvm::cl::Prefix, llvm::CallingConv::X86_FastCall, and llvm::CallingConv::X86_VectorCall.
Referenced by EmitCamlGlobal(), llvm::emitLinkerFlagsForGlobalCOFF(), llvm::WasmException::endModule(), llvm::RecordStreamer::flushSymverDirectives(), llvm::AsmPrinter::GetExternalSymbolSymbol(), llvm::ExecutionEngine::getMangledName(), getNameWithPrefix(), llvm::TargetLoweringObjectFile::getNameWithPrefix(), llvm::TargetMachine::getNameWithPrefix(), llvm::MCJIT::getSymbolAddress(), GetSymbolFromOperand(), llvm::M68kMCInstLower::GetSymbolFromOperand(), llvm::FastISel::lowerCallTo(), llvm::orc::LLJIT::mangle(), llvm::orc::MangleAndInterner::operator()(), and llvm::FastISel::CallLoweringInfo::setCallee().
|
static |
Print the appropriate prefix and the specified name as the global variable name.
GVName must not be empty.
Definition at line 69 of file Mangler.cpp.
References DL, and getNameWithPrefixImpl().
void Mangler::getNameWithPrefix | ( | SmallVectorImpl< char > & | OutName, |
const GlobalValue * | GV, | ||
bool | CannotUsePrivateLabel | ||
) | const |
Definition at line 185 of file Mangler.cpp.
References getNameWithPrefix().
|
static |
Definition at line 74 of file Mangler.cpp.
References DL, getNameWithPrefixImpl(), and llvm::cl::Prefix.