summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-11-10 19:33:43 +0000
committerChris Lattner <sabre@nondot.org>2005-11-10 19:33:43 +0000
commit9eb7dfa15a4ba4046f853b3ed1359b114a2a1792 (patch)
treeb075199061c0d6de3db8d47e1e030475228506c4 /llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
parentb8e8cbec50f9874bd7fa5288e7af29e27ebea4d2 (diff)
downloadbcm5719-llvm-9eb7dfa15a4ba4046f853b3ed1359b114a2a1792.tar.gz
bcm5719-llvm-9eb7dfa15a4ba4046f853b3ed1359b114a2a1792.zip
Darwin supports quoted labels. This implements:
test/Regression/CodeGen/PowerPC/darwin-labels.ll llvm-svn: 24287
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp b/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
index 7969d02b23e..186d092ff42 100644
--- a/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
+++ b/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
@@ -446,6 +446,9 @@ bool DarwinAsmPrinter::doInitialization(Module &M) {
if (TM.getSubtarget<PPCSubtarget>().isGigaProcessor())
O << "\t.machine ppc970\n";
AsmPrinter::doInitialization(M);
+
+ // Darwin wants symbols to be quoted if they have complex names.
+ Mang->setUseQuotes(true);
return false;
}
OpenPOWER on IntegriCloud