[llvm-commits] [llvm] r96438 - /llvm/trunk/lib/Target/X86/X86MCAsmInfo.cpp

Chris Lattner sabre at nondot.org
Tue Feb 16 17:38:01 PST 2010


Author: lattner
Date: Tue Feb 16 19:38:01 2010
New Revision: 96438

URL: http://llvm.org/viewvc/llvm-project?rev=96438&view=rev
Log:
add a comment explaining why darwin/i386 uses ## as a comment.
It's not clear why this is really required, but it was explicitly
added in r48808 with no real explanation or rdar #.

Modified:
    llvm/trunk/lib/Target/X86/X86MCAsmInfo.cpp

Modified: llvm/trunk/lib/Target/X86/X86MCAsmInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86MCAsmInfo.cpp?rev=96438&r1=96437&r2=96438&view=diff

==============================================================================
--- llvm/trunk/lib/Target/X86/X86MCAsmInfo.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86MCAsmInfo.cpp Tue Feb 16 19:38:01 2010
@@ -55,6 +55,8 @@
   if (!is64Bit)
     Data64bitsDirective = 0;       // we can't emit a 64-bit unit
 
+  // Use ## as a comment string so that .s files generated by llvm can go
+  // through the GCC preprocessor without causing an error.
   CommentString = "##";
   PCSymbol = ".";
 





More information about the llvm-commits mailing list