aboutsummaryrefslogtreecommitdiff
path: root/Driver/clang.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2008-12-01 18:55:22 +0000
committerDaniel Dunbar <daniel@zuster.org>2008-12-01 18:55:22 +0000
commitc1571453de3db2b26c15cc13115fac4ece84aa7c (patch)
tree3545a8d6940fcf8a4092f9f91ea505faf8c7a86a /Driver/clang.cpp
parent5fd5468af403b6ab570a21eb59a004b265708799 (diff)
Add LangOptions marker for assembler-with-cpp mode and use to define
__ASSEMBLER__ properly. Patch from Roman Divacky (with minor formatting changes). Thanks! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60362 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Driver/clang.cpp')
-rw-r--r--Driver/clang.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Driver/clang.cpp b/Driver/clang.cpp
index 34fd62fd9d..5c89ed0776 100644
--- a/Driver/clang.cpp
+++ b/Driver/clang.cpp
@@ -353,6 +353,7 @@ static bool InitializeLangOptions(LangOptions &Options, LangKind LK){
PCH = true;
break;
case langkind_asm_cpp:
+ Options.AsmPreprocessor = 1;
// FALLTHROUGH
case langkind_c_cpp:
NoPreprocess = true;