add a comment explaining why darwin/i386 uses ## as a comment.
authorChris Lattner <sabre@nondot.org>
Wed, 17 Feb 2010 01:38:01 +0000 (01:38 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 17 Feb 2010 01:38:01 +0000 (01:38 +0000)
It's not clear why this is really required, but it was explicitly
added in r48808 with no real explanation or rdar #.

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

lib/Target/X86/X86MCAsmInfo.cpp

index 6701fabe03a20aecbf5d9742fc4b76ae19eb3108..b220cff54c88b01d7100bbdead60081262d3b22c 100644 (file)
@@ -55,6 +55,8 @@ X86MCAsmInfoDarwin::X86MCAsmInfoDarwin(const Triple &Triple) {
   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 = ".";