diff options
author | Chris Lattner <sabre@nondot.org> | 2009-01-05 03:55:46 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-01-05 03:55:46 +0000 |
commit | 5b4547318bb179fc76f984f0eeaaf615927e795c (patch) | |
tree | 23463f07964aeba1dfa3576d2912fa0ffe1709be /lib/Parse/Parser.cpp | |
parent | 357089dea05855e27f80f6f244f9c60fc77cee83 (diff) |
remove optimization to avoid looking ahead for cases like ::foo. This
isn't worth the complexity and the code already does a ton of lookahead.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61671 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/Parser.cpp')
-rw-r--r-- | lib/Parse/Parser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Parse/Parser.cpp b/lib/Parse/Parser.cpp index 1cd0b022b5..4984ebaff8 100644 --- a/lib/Parse/Parser.cpp +++ b/lib/Parse/Parser.cpp @@ -746,14 +746,14 @@ Parser::OwningExprResult Parser::ParseSimpleAsm() { /// /// Note that this routine emits an error if you call it with ::new or ::delete /// as the current tokens, so only call it in contexts where these are invalid. -bool Parser::TryAnnotateTypeOrScopeToken(const Token *GlobalQualifier) { +bool Parser::TryAnnotateTypeOrScopeToken() { assert((Tok.is(tok::identifier) || Tok.is(tok::coloncolon)) && "Cannot be a type or scope token!"); // FIXME: Implement template-ids CXXScopeSpec SS; if (getLang().CPlusPlus) - MaybeParseCXXScopeSpecifier(SS, GlobalQualifier); + MaybeParseCXXScopeSpecifier(SS); if (Tok.is(tok::identifier)) { // Determine whether the identifier is a type name. |