LLVM API Documentation
#include <Mangler.h>
Public Types | |
enum | ManglerPrefixTy { Default, Private, LinkerPrivate } |
Public Member Functions | |
Mangler (const DataLayout *DL) | |
void | getNameWithPrefix (raw_ostream &OS, const GlobalValue *GV, bool CannotUsePrivateLabel) const |
void | getNameWithPrefix (SmallVectorImpl< char > &OutName, const GlobalValue *GV, bool CannotUsePrivateLabel) const |
void | getNameWithPrefix (raw_ostream &OS, const Twine &GVName, ManglerPrefixTy PrefixTy=Mangler::Default) const |
void | getNameWithPrefix (SmallVectorImpl< char > &OutName, const Twine &GVName, ManglerPrefixTy PrefixTy=Mangler::Default) const |
llvm::Mangler::Mangler | ( | const DataLayout * | DL | ) | [inline] |
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 89 of file Mangler.cpp.
References AddFastCallStdCallSuffix(), Default, llvm::Function::getCallingConv(), llvm::Function::getFunctionType(), llvm::Value::getName(), getNameWithPrefixx(), llvm::FunctionType::getNumParams(), llvm::DataLayout::hasMicrosoftFastStdCallMangling(), llvm::Value::hasName(), llvm::GlobalValue::hasPrivateLinkage(), llvm::Function::hasStructRetAttr(), llvm::FunctionType::isVarArg(), LinkerPrivate, Name, Private, llvm::CallingConv::X86_FastCall, and llvm::CallingConv::X86_StdCall.
Referenced by EmitCamlGlobal(), llvm::AsmPrinter::GetExternalSymbolSymbol(), getNameWithPrefix(), llvm::TargetMachine::getNameWithPrefix(), and GetSymbolFromOperand().
void Mangler::getNameWithPrefix | ( | SmallVectorImpl< char > & | OutName, |
const GlobalValue * | GV, | ||
bool | CannotUsePrivateLabel | ||
) | const |
Definition at line 142 of file Mangler.cpp.
References getNameWithPrefix().
void Mangler::getNameWithPrefix | ( | raw_ostream & | OS, |
const Twine & | GVName, | ||
ManglerPrefixTy | PrefixTy = Mangler::Default |
||
) | const |
Print the appropriate prefix and the specified name as the global variable name. GVName must not be empty.
Definition at line 54 of file Mangler.cpp.
References getNameWithPrefixx().
void Mangler::getNameWithPrefix | ( | SmallVectorImpl< char > & | OutName, |
const Twine & | GVName, | ||
ManglerPrefixTy | PrefixTy = Mangler::Default |
||
) | const |
Definition at line 59 of file Mangler.cpp.
References getNameWithPrefix().