[llvm-commits] CVS: llvm/lib/Target/X86/X86AsmPrinter.cpp

Dale Johannesen dalej at apple.com
Thu Jun 21 17:55:19 PDT 2007



Changes in directory llvm/lib/Target/X86:

X86AsmPrinter.cpp updated: 1.243 -> 1.244
---
Log message:

Quote complex names for Darwin X86 and ARM.


---
Diffs of the changes:  (+7 -1)

 X86AsmPrinter.cpp |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletion(-)


Index: llvm/lib/Target/X86/X86AsmPrinter.cpp
diff -u llvm/lib/Target/X86/X86AsmPrinter.cpp:1.243 llvm/lib/Target/X86/X86AsmPrinter.cpp:1.244
--- llvm/lib/Target/X86/X86AsmPrinter.cpp:1.243	Thu Jun 14 10:00:27 2007
+++ llvm/lib/Target/X86/X86AsmPrinter.cpp	Thu Jun 21 19:54:56 2007
@@ -120,7 +120,13 @@
     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) {






More information about the llvm-commits mailing list