diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-12-10 23:20:59 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-12-10 23:20:59 +0000 |
commit | 8e1f05fc2625d48722ddd596ca1dcc1e2ba12971 (patch) | |
tree | f3ca0f2d5b41636566772d200fa47615d1f564b0 /llvm/lib/CodeGen/BranchFolding.cpp | |
parent | 6c2522a1cf7161af65af145b65a89b57cd840653 (diff) | |
download | bcm5719-llvm-8e1f05fc2625d48722ddd596ca1dcc1e2ba12971.tar.gz bcm5719-llvm-8e1f05fc2625d48722ddd596ca1dcc1e2ba12971.zip |
PreprocessorLexer (and subclasses):
- Added virtual method 'getSourceLocation()' (no arguments) that gets the location of the next "observable" location (e.g., next character, next token).
PPLexerChange.cpp:
- Implemented FIXME by using PreprocessorLexer::getSourceLocation() to get the location in the file we are returning to after lexing a #included file. This appears to be slightly faster than having the branch (i.e., 'if(CurLexer)'). It's also not a really hot part of the Preprocessor.
llvm-svn: 60860
Diffstat (limited to 'llvm/lib/CodeGen/BranchFolding.cpp')
0 files changed, 0 insertions, 0 deletions