diff options
author | Anders Carlsson <andersca@mac.com> | 2011-01-20 03:47:08 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2011-01-20 03:47:08 +0000 |
commit | 428803b58a42127e9b4dbea7537f2b70580aaafb (patch) | |
tree | f70976a3a1b81e6d6c595b80bc6189264428c4d2 /clang/lib/Parse/Parser.cpp | |
parent | d802266c6b148ef762d5c8752ea2a989f2114884 (diff) | |
download | bcm5719-llvm-428803b58a42127e9b4dbea7537f2b70580aaafb.tar.gz bcm5719-llvm-428803b58a42127e9b4dbea7537f2b70580aaafb.zip |
Lazily initialize the 'final' and 'override' contextual keywords as suggested by Doug.
llvm-svn: 123876
Diffstat (limited to 'clang/lib/Parse/Parser.cpp')
-rw-r--r-- | clang/lib/Parse/Parser.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/clang/lib/Parse/Parser.cpp b/clang/lib/Parse/Parser.cpp index 47c62377c22..3327f7b5a90 100644 --- a/clang/lib/Parse/Parser.cpp +++ b/clang/lib/Parse/Parser.cpp @@ -387,11 +387,8 @@ void Parser::Initialize() { ObjCTypeQuals[objc_byref] = &PP.getIdentifierTable().get("byref"); } - // Initialize C++0x contextual keywords. - if (getLang().CPlusPlus0x) { - Ident_final = &PP.getIdentifierTable().get("final"); - Ident_override = &PP.getIdentifierTable().get("override"); - } + Ident_final = 0; + Ident_override = 0; Ident_super = &PP.getIdentifierTable().get("super"); |