aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/X86/X86AsmPrinter.cpp
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2007-06-22 00:54:56 +0000
committerDale Johannesen <dalej@apple.com>2007-06-22 00:54:56 +0000
commit5411835165429dc409012adc5efaf92c4938563f (patch)
tree30b3abbe6d3d77b99013a3e8bacfeebce309b9e8 /lib/Target/X86/X86AsmPrinter.cpp
parente8138ffeaf9722cbd370c970c6d735f3a6a0f884 (diff)
Quote complex names for Darwin X86 and ARM.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37700 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86AsmPrinter.cpp')
-rw-r--r--lib/Target/X86/X86AsmPrinter.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/Target/X86/X86AsmPrinter.cpp b/lib/Target/X86/X86AsmPrinter.cpp
index 40b633fee4..59b9b1f959 100644
--- a/lib/Target/X86/X86AsmPrinter.cpp
+++ b/lib/Target/X86/X86AsmPrinter.cpp
@@ -120,7 +120,13 @@ bool X86SharedAsmPrinter::doInitialization(Module &M) {
DW.BeginModule(&M);
}
- return AsmPrinter::doInitialization(M);
+ AsmPrinter::doInitialization(M);
+
+ // Darwin wants symbols to be quoted if they have complex names.
+ if (Subtarget->isTargetDarwin())
+ Mang->setUseQuotes(true);
+
+ return false;
}
bool X86SharedAsmPrinter::doFinalization(Module &M) {