[cfe-commits] r60063 - /cfe/trunk/lib/Parse/ParseDecl.cpp

Argiris Kirtzidis akyrtzi at gmail.com
Wed Nov 26 15:12:08 PST 2008


Chris Lattner wrote:
>
> On Nov 25, 2008, at 3:05 PM, Daniel Dunbar wrote:
>
>> Author: ddunbar
>> Date: Tue Nov 25 17:05:24 2008
>> New Revision: 60063
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=60063&view=rev
>> Log:
>> Only call TryAnnotateScopeToken when parsing C++.
>> - This improves -parse-noop of Carbon.h by +2%, and I believe
>>   compensates for the majority of the performance regression in r58913.
>
> Argiris, is there any way to speed up TryAnnotateScopeToken in the 
> common case?

Oh, how about doing a isCXXTokenScopeSpecifier check before calling 
TryAnnotateScopeToken ?

-Argiris



More information about the cfe-commits mailing list