LLVM API Documentation
#include <Mangler.h>
Collaboration diagram for llvm::Mangler:
Public Member Functions | |
Mangler (Module &M, const char *Prefix="") | |
void | setUseQuotes (bool Val) |
void | markCharAcceptable (unsigned char X) |
void | markCharUnacceptable (unsigned char X) |
bool | isCharAcceptable (unsigned char X) const |
unsigned | getTypeID (const Type *Ty) |
std::string | getValueName (const GlobalValue *V) |
std::string | getValueName (const Value *V) |
std::string | makeNameProper (const std::string &x, const char *Prefix="") |
Definition at line 28 of file Mangler.h.
Mangler::Mangler | ( | Module & | M, | |
const char * | Prefix = "" | |||
) |
Definition at line 176 of file Mangler.cpp.
References llvm::Module::begin(), E, llvm::Module::end(), llvm::Module::global_begin(), llvm::Module::global_end(), M, markCharAcceptable(), and llvm::X.
void llvm::Mangler::setUseQuotes | ( | bool | Val | ) | [inline] |
void llvm::Mangler::markCharAcceptable | ( | unsigned char | X | ) | [inline] |
void llvm::Mangler::markCharUnacceptable | ( | unsigned char | X | ) | [inline] |
Definition at line 75 of file Mangler.h.
Referenced by llvm::X86IntelAsmPrinter::doInitialization().
bool llvm::Mangler::isCharAcceptable | ( | unsigned char | X | ) | const [inline] |
unsigned Mangler::getTypeID | ( | const Type * | Ty | ) |
getTypeID - Return a unique ID for the specified LLVM type.
Definition at line 104 of file Mangler.cpp.
Referenced by getValueName().
std::string Mangler::getValueName | ( | const GlobalValue * | V | ) |
getValueName - Returns the mangled name of V, an LLVM Value, in the current module.
Definition at line 124 of file Mangler.cpp.
References getTypeID(), GV, makeNameProper(), Name, and llvm::utostr().
Referenced by llvm::X86IntelAsmPrinter::doFinalization(), llvm::X86SharedAsmPrinter::doFinalization(), llvm::X86IntelAsmPrinter::doInitialization(), llvm::AsmPrinter::EmitConstantValueOnly(), getValueName(), llvm::X86IntelAsmPrinter::printOp(), llvm::X86ATTAsmPrinter::printOperand(), and llvm::AsmPrinter::SetupMachineFunction().
std::string Mangler::getValueName | ( | const Value * | V | ) |
Definition at line 110 of file Mangler.cpp.
References getTypeID(), getValueName(), GV, Name, llvm::utostr(), and V.
std::string Mangler::makeNameProper | ( | const std::string & | x, | |
const char * | Prefix = "" | |||
) |
makeNameProper - We don't want identifier names with ., space, or
Definition at line 32 of file Mangler.cpp.
References E, isCharAcceptable(), and MangleLetter().
Referenced by getValueName().