Add new option to leave asm names alone

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30149 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2006-09-07 18:20:41 +00:00
parent 81fe06a112
commit 833eb68a1f
2 changed files with 14 additions and 1 deletions

View File

@@ -35,6 +35,10 @@ class Mangler {
/// the space character. By default, this is false.
bool UseQuotes;
/// PreserveAsmNames - If this is set, the asm escape character is not removed
/// from names with 'asm' specifiers.
bool PreserveAsmNames;
/// Memo - This is used to remember the name that we assign a value.
///
std::map<const Value*, std::string> Memo;
@@ -66,6 +70,10 @@ public:
/// strings for assembler labels.
void setUseQuotes(bool Val) { UseQuotes = Val; }
/// setPreserveAsmNames - If the mangler should not strip off the asm name
/// identifier (\001), this should be set.
void setPreserveAsmNames(bool Val) { PreserveAsmNames = Val; }
/// Acceptable Characters - This allows the target to specify which characters
/// are acceptable to the assembler without being mangled. By default we
/// allow letters, numbers, '_', '$', and '.', which is what GAS accepts.