summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/compiler_builtins_arm.m
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2013-06-24 07:20:36 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2013-06-24 07:20:36 +0000
commitcf4ab520b555bb764a72d648f2820f3deb943d29 (patch)
treeceb26c690189dff5c396c40aa1732dfa0920cf4e /clang/test/Modules/compiler_builtins_arm.m
parentce1ae387d658f872c8495bf51b6823b1d6aa1fa9 (diff)
downloadbcm5719-llvm-cf4ab520b555bb764a72d648f2820f3deb943d29.tar.gz
bcm5719-llvm-cf4ab520b555bb764a72d648f2820f3deb943d29.zip
Avoid adding entries to the DeclContext lookup table multiple times when lazily
constructing a lookup table. Previously, buildLookup would add lookup table entries for each item lexically within the DC, and adding the first entry with a given name would trigger the external source to add all its entries with that name. Then buildLookup would carry on and re-add those entries all over again. Instead, follow a simple rule: a declaration from an external source is only ever made visible by the external source. One exception to this: since we don't usually build a lookup table for the TU in C, and we never serialize one, we don't expect the external source to provide lookups in the TU in C, so we build those ones ourselves. llvm-svn: 184696
Diffstat (limited to 'clang/test/Modules/compiler_builtins_arm.m')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud