diff options
author | Daniel Dunbar <daniel@zuster.org> | 2008-12-01 18:55:22 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2008-12-01 18:55:22 +0000 |
commit | c1571453de3db2b26c15cc13115fac4ece84aa7c (patch) | |
tree | 3545a8d6940fcf8a4092f9f91ea505faf8c7a86a /include/clang/Basic/LangOptions.h | |
parent | 5fd5468af403b6ab570a21eb59a004b265708799 (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 'include/clang/Basic/LangOptions.h')
-rw-r--r-- | include/clang/Basic/LangOptions.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/clang/Basic/LangOptions.h b/include/clang/Basic/LangOptions.h index b1bdebabc4..5cf9fc1b4b 100644 --- a/include/clang/Basic/LangOptions.h +++ b/include/clang/Basic/LangOptions.h @@ -25,6 +25,7 @@ struct LangOptions { unsigned Trigraphs : 1; // Trigraphs in source files. unsigned BCPLComment : 1; // BCPL-style '//' comments. unsigned DollarIdents : 1; // '$' allowed in identifiers. + unsigned AsmPreprocessor : 1; // Preprocessor in asm mode. unsigned ImplicitInt : 1; // C89 implicit 'int'. unsigned Digraphs : 1; // C94, C99 and C++ unsigned HexFloats : 1; // C99 Hexadecimal float constants. @@ -47,7 +48,7 @@ struct LangOptions { unsigned NeXTRuntime : 1; // Use NeXT runtime. unsigned ThreadsafeStatics : 1; // Whether static initializers are protected - // by lockis. + // by locks. unsigned Blocks : 1; // block extension to C private: unsigned GC : 2; // Objective-C Garbage Collection modes. We declare @@ -58,7 +59,8 @@ public: enum GCMode { NonGC, GCOnly, HybridGC }; LangOptions() { - Trigraphs = BCPLComment = DollarIdents = ImplicitInt = Digraphs = 0; + Trigraphs = BCPLComment = DollarIdents = AsmPreprocessor = 0; + ImplicitInt = Digraphs = 0; HexFloats = 0; GC = ObjC1 = ObjC2 = 0; C99 = Microsoft = CPlusPlus = CPlusPlus0x = NoExtensions = 0; |