diff options
author | Chris Lattner <sabre@nondot.org> | 2010-05-21 20:22:37 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-05-21 20:22:37 +0000 |
commit | 34d7c4d62863ca0d5bcf705da0e1001878386c26 (patch) | |
tree | d095705542191fd4353a7369aa420d5596ddd23d /lib/Basic/IdentifierTable.cpp | |
parent | a5ddbcac1e784d3e438fc6233a9e0f5516dc35ef (diff) |
don't make _Bool be a keyword in -fms-extensions mode, patch by
Steven Watanabe!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104373 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/IdentifierTable.cpp')
-rw-r--r-- | lib/Basic/IdentifierTable.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Basic/IdentifierTable.cpp b/lib/Basic/IdentifierTable.cpp index ed0de8c4af..8993e6713f 100644 --- a/lib/Basic/IdentifierTable.cpp +++ b/lib/Basic/IdentifierTable.cpp @@ -70,7 +70,8 @@ namespace { KEYGNU = 16, KEYMS = 32, BOOLSUPPORT = 64, - KEYALTIVEC = 128 + KEYALTIVEC = 128, + KEYNOMS = 256 }; } @@ -94,6 +95,7 @@ static void AddKeyword(llvm::StringRef Keyword, else if (LangOpts.Microsoft && (Flags & KEYMS)) AddResult = 1; else if (LangOpts.Bool && (Flags & BOOLSUPPORT)) AddResult = 2; else if (LangOpts.AltiVec && (Flags & KEYALTIVEC)) AddResult = 2; + else if (!LangOpts.Microsoft && (Flags & KEYNOMS)) AddResult = 2; // Don't add this keyword if disabled in this language. if (AddResult == 0) return; |