LLVM API Documentation
#include <Mangler.h>
Public Member Functions | |
| Mangler (Module &M, const char *Prefix="", const char *privatePrefix="") | |
| void | setUseQuotes (bool Val) |
| void | setPreserveAsmNames (bool Val) |
| void | markCharAcceptable (unsigned char X) |
| void | markCharUnacceptable (unsigned char X) |
| bool | isCharAcceptable (unsigned char X) const |
| std::string | getValueName (const GlobalValue *V, const char *Suffix="") |
| std::string | getValueName (const Value *V) |
| std::string | makeNameProper (const std::string &x, const char *Prefix="") |
Definition at line 27 of file Mangler.h.
| Mangler::Mangler | ( | Module & | M, | |
| const char * | Prefix = "", |
|||
| const char * | privatePrefix = "" | |||
| ) |
Definition at line 161 of file Mangler.cpp.
References llvm::array_endof(), markCharAcceptable(), and X.
| void llvm::Mangler::setUseQuotes | ( | bool | Val | ) | [inline] |
setUseQuotes - If UseQuotes is set to true, this target accepts quoted strings for assembler labels.
Definition at line 66 of file Mangler.h.
Referenced by llvm::X86ATTAsmPrinter::doInitialization().
| void llvm::Mangler::setPreserveAsmNames | ( | bool | Val | ) | [inline] |
| void llvm::Mangler::markCharAcceptable | ( | unsigned char | X | ) | [inline] |
| void llvm::Mangler::markCharUnacceptable | ( | unsigned char | X | ) | [inline] |
Definition at line 78 of file Mangler.h.
Referenced by llvm::X86IntelAsmPrinter::doInitialization().
| bool llvm::Mangler::isCharAcceptable | ( | unsigned char | X | ) | const [inline] |
| std::string Mangler::getValueName | ( | const GlobalValue * | V, | |
| const char * | Suffix = "" | |||
| ) |
getValueName - Returns the mangled name of V, an LLVM Value, in the current module.
Definition at line 132 of file Mangler.cpp.
References llvm::Value::getName(), llvm::Value::getNameStart(), llvm::GlobalValue::getType(), llvm::lltok::GlobalID, llvm::Value::hasName(), llvm::GlobalValue::hasPrivateLinkage(), makeNameProper(), Name, and llvm::utostr().
Referenced by llvm::X86IntelAsmPrinter::doFinalization(), llvm::AsmPrinter::doFinalization(), llvm::X86IntelAsmPrinter::doInitialization(), llvm::AsmPrinter::EmitConstantValueOnly(), llvm::DarwinTargetAsmInfo::emitUsedDirectiveFor(), llvm::MachOCodeEmitter::finishFunction(), llvm::AsmPrinter::getCurrentFunctionEHName(), llvm::AsmPrinter::getGlobalLinkName(), getValueName(), llvm::X86ATTAsmPrinter::printModuleLevelGV(), llvm::X86IntelAsmPrinter::printOp(), llvm::X86ATTAsmPrinter::printOperand(), and llvm::AsmPrinter::SetupMachineFunction().
| std::string Mangler::getValueName | ( | const Value * | V | ) |
Definition at line 118 of file Mangler.cpp.
References llvm::Value::getType(), getValueName(), GV, Name, and llvm::utostr().
| std::string Mangler::makeNameProper | ( | const std::string & | X, | |
| const char * | Prefix = "" | |||
| ) |
makeNameProper - We don't want identifier names with ., space, or
makeNameProper - We don't want identifier names non-C-identifier characters in them, so mangle them as appropriate.
Definition at line 34 of file Mangler.cpp.
References E, isCharAcceptable(), and MangleLetter().
Referenced by llvm::X86ATTAsmPrinter::doFinalization(), llvm::AsmPrinter::getCurrentFunctionEHName(), getValueName(), and llvm::X86ATTAsmPrinter::runOnMachineFunction().