summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/MacroArgs.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
commit5a5d67101b71577a89a1a3ee89f1b85994d83304 (patch)
tree95a5414a131ec84b5657d687d9cac8da7ccc1c0d /clang/lib/Lex/MacroArgs.cpp
parentdd9babc79a82804010381912d879eafbf4d8fe1a (diff)
downloadbcm5719-llvm-5a5d67101b71577a89a1a3ee89f1b85994d83304.tar.gz
bcm5719-llvm-5a5d67101b71577a89a1a3ee89f1b85994d83304.zip
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. llvm-svn: 62993
Diffstat (limited to 'clang/lib/Lex/MacroArgs.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud