Go to file
Ted Kremenek 59e003e538 Added conditional guard 'if (CurLexer)' when using SetCommentRetentionState().
This is because the PTHLexer will not support this method. Performance testing
on preprocessing Cocoa.h shows that this results in a negligible performance
difference (less than 1%).

I tried making Lexer::SetCommentRetentionState() an out-of-line function (a
precursor to making it a virtual function in PreprocessorLexer) and noticed a 1%
decrease in speed (it is called in a hot part of the Preprocessor).

llvm-svn: 59477
2008-11-18 00:43:07 +00:00
clang Added conditional guard 'if (CurLexer)' when using SetCommentRetentionState(). 2008-11-18 00:43:07 +00:00
llvm Give SIToFPInst preference over UIToFPInst because it is faster on platforms that are widely used. 2008-11-18 00:40:02 +00:00