Skip to content
Commit dd9babc7 authored by Chris Lattner's avatar Chris Lattner
Browse files

Only resolve a macro's instantiation loc once per macro, instead of once

per token lexed from it.  This speeds up clang on c99-intconst-1.c from
the GCC testsuite from 3.64s to 2.66s (36%).  This reduces the number of
binary search FileID lookups from 251570522 to 114175649 on this testcase.

llvm-svn: 62992
parent 95b2a206
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment