diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-02-17 01:38:01 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-02-17 01:38:01 +0000 |
| commit | d8716676ea9cea863aa87822ecb3eb9acb7a23c4 (patch) | |
| tree | 4ab2b8852481c8ad3e4a3b9d0a180246d1d0a718 /llvm/lib | |
| parent | 022e511f4ad0f3d5b0e55f81559bf2f384cb96a3 (diff) | |
| download | bcm5719-llvm-d8716676ea9cea863aa87822ecb3eb9acb7a23c4.tar.gz bcm5719-llvm-d8716676ea9cea863aa87822ecb3eb9acb7a23c4.zip | |
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
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/X86/X86MCAsmInfo.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86MCAsmInfo.cpp b/llvm/lib/Target/X86/X86MCAsmInfo.cpp index 6701fabe03a..b220cff54c8 100644 --- a/llvm/lib/Target/X86/X86MCAsmInfo.cpp +++ b/llvm/lib/Target/X86/X86MCAsmInfo.cpp @@ -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 = "."; |

