aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-02-17 01:55:54 +0000
committerChris Lattner <sabre@nondot.org>2010-02-17 01:55:54 +0000
commit52be68d86c1c51b25fc6626bc7e6dd8ef4463c46 (patch)
tree5464ae35ba31abd5a67411302d213fbfd5ae9584
parentfeeb93ecd25e34140a970b5e9ccc2e4bbb5eccf2 (diff)
downloadexternal_llvm-52be68d86c1c51b25fc6626bc7e6dd8ef4463c46.zip
external_llvm-52be68d86c1c51b25fc6626bc7e6dd8ef4463c46.tar.gz
external_llvm-52be68d86c1c51b25fc6626bc7e6dd8ef4463c46.tar.bz2
daniel remembered why this was needed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96440 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/X86/X86MCAsmInfo.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Target/X86/X86MCAsmInfo.cpp b/lib/Target/X86/X86MCAsmInfo.cpp
index b220cff..bc56e71 100644
--- a/lib/Target/X86/X86MCAsmInfo.cpp
+++ b/lib/Target/X86/X86MCAsmInfo.cpp
@@ -56,7 +56,10 @@ X86MCAsmInfoDarwin::X86MCAsmInfoDarwin(const Triple &Triple) {
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.
+ // through the GCC preprocessor without causing an error. This is needed
+ // because "clang foo.s" runs the C preprocessor, which is usually reserved
+ // for .S files on other systems. Perhaps this is because the file system
+ // wasn't always case preserving or something.
CommentString = "##";
PCSymbol = ".";