diff options
| author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-08-19 22:34:17 +0000 |
|---|---|---|
| committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-08-19 22:34:17 +0000 |
| commit | d60a34a4e514ec0dfddd05ef2744be104e111f45 (patch) | |
| tree | e5614b539c280236948485ec7e92384458d495e8 /lib/CodeGen/CodeGenModule.cpp | |
| parent | ec3b5389a5032433116ec2f2ee266b9666ad2eb4 (diff) | |
| download | clang-d60a34a4e514ec0dfddd05ef2744be104e111f45.tar.gz clang-d60a34a4e514ec0dfddd05ef2744be104e111f45.tar.bz2 clang-d60a34a4e514ec0dfddd05ef2744be104e111f45.tar.xz | |
For assigning SourceLocations to macro arg tokens, reserve a single SLocEntry
for tokens that are lexed consecutively from the same FileID, instead of creating
a SLocEntry for each token. e.g for
assert(foo == bar);
there will be a single SLocEntry for the "foo == bar" chunk and locations
for the 'foo', '==', 'bar' tokens will point inside that chunk.
For parsing SemaExpr.cpp, this reduced the number of SLocEntries by 25%.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138129 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
