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 #.

llvm-svn: 96438
This commit is contained in:
Chris Lattner 2010-02-17 01:38:01 +00:00
parent 022e511f4a
commit d8716676ea
1 changed files with 2 additions and 0 deletions

View 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 = ".";