diff options
author | Douglas Gregor <dgregor@apple.com> | 2012-03-08 01:00:17 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2012-03-08 01:00:17 +0000 |
commit | 0cf55e99c6810cb624486f2a6ff51886f6e23d2e (patch) | |
tree | 7bcab528d0789cb03a87054f7a2df2c835007878 /clang/lib/Parse/ParseObjc.cpp | |
parent | 80f8b4e7cb2004c0f2b8fde0bce3f244862fb74d (diff) | |
download | bcm5719-llvm-0cf55e99c6810cb624486f2a6ff51886f6e23d2e.tar.gz bcm5719-llvm-0cf55e99c6810cb624486f2a6ff51886f6e23d2e.zip |
Streamline BalancedDelimiterTracker, by eliminating the duplicate
paren/brace/bracket tracking (the Consume* functions already did it),
removing the use of ConsumeAnyToken(), and moving the hot paths inline
with the error paths out-of-line.
llvm-svn: 152274
Diffstat (limited to 'clang/lib/Parse/ParseObjc.cpp')
-rw-r--r-- | clang/lib/Parse/ParseObjc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Parse/ParseObjc.cpp b/clang/lib/Parse/ParseObjc.cpp index 971c7d4887f..3309b84a236 100644 --- a/clang/lib/Parse/ParseObjc.cpp +++ b/clang/lib/Parse/ParseObjc.cpp @@ -1192,7 +1192,7 @@ ParseObjCProtocolReferences(SmallVectorImpl<Decl *> &Protocols, return true; } - EndLoc = ConsumeAnyToken(); + EndLoc = ConsumeToken(); // Convert the list of protocols identifiers into a list of protocol decls. Actions.FindProtocolDeclaration(WarnOnDeclarations, |