summaryrefslogtreecommitdiff
path: root/include/llvm/Support/Mangler.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Support/Mangler.h')
-rw-r--r--include/llvm/Support/Mangler.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/Support/Mangler.h b/include/llvm/Support/Mangler.h
index ac7deadf8b..b6f9839fab 100644
--- a/include/llvm/Support/Mangler.h
+++ b/include/llvm/Support/Mangler.h
@@ -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.