aboutsummaryrefslogtreecommitdiff
path: root/lib/Basic/SourceManager.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-01-26 04:06:48 +0000
committerChris Lattner <sabre@nondot.org>2009-01-26 04:06:48 +0000
commit9bd0d59026d4995148443512ab5ddf009117bfd8 (patch)
treec2a479c9a8fe27472023e758e56819213f6f57e1 /lib/Basic/SourceManager.cpp
parentb99bdadf9ace3e8c793e12e9bb447501f86b4f72 (diff)
Eagerly resolve the spelling location of the tokens in a definition
of a macro. Since these tokens may themselves be from macro expansions, we need to resolve down to the spelling loc when the macro ends up being instantiated. Instead of resolving this for each token expanded from the macro definition, just do it once when the macro is defined. This speeds up clang on c99-intconst-1.c from 2.66s to 2.43s (9.5%), reducing the FileID lookups from 407244 linear and 114175649 binary to 2529040 linear and 64771121 binary. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62993 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/SourceManager.cpp')
0 files changed, 0 insertions, 0 deletions