summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-11-18 00:43:07 +0000
committerTed Kremenek <kremenek@apple.com>2008-11-18 00:43:07 +0000
commit59e003e538465782cc0239ba0cc85211d07e2f86 (patch)
tree1ce36e6a516e9c08225c57a6d57d784a863a03b7 /clang/lib/CodeGen/CodeGenModule.cpp
parentf1e932920952a75058f3cb304f1f646a918d7750 (diff)
downloadbcm5719-llvm-59e003e538465782cc0239ba0cc85211d07e2f86.tar.gz
bcm5719-llvm-59e003e538465782cc0239ba0cc85211d07e2f86.zip
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
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud