Darwin supports quoted labels. This implements:
authorChris Lattner <sabre@nondot.org>
Thu, 10 Nov 2005 19:33:43 +0000 (19:33 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 10 Nov 2005 19:33:43 +0000 (19:33 +0000)
test/Regression/CodeGen/PowerPC/darwin-labels.ll

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24287 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCAsmPrinter.cpp

index 7969d02b23e7199573fb11d5d1ad3b39eac2866f..186d092ff4207bcc2c5daa41c4b680155e02e5d7 100644 (file)
@@ -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;
 }