summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-07-07 16:35:42 +0000
committerDouglas Gregor <dgregor@apple.com>2009-07-07 16:35:42 +0000
commit27821cee822d9ac84efb9314e0c23c48af44536c (patch)
tree648b2499080b40e690241773a194aeb7e303980d /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent4f3675ca73231a14ec84539dc408a6848ce9f6a3 (diff)
downloadbcm5719-llvm-27821cee822d9ac84efb9314e0c23c48af44536c.tar.gz
bcm5719-llvm-27821cee822d9ac84efb9314e0c23c48af44536c.zip
Make ASTContext explicitly keep track of the declaration for the C
FILE type, rather than using name lookup to find FILE within the translation unit. Within precompiled headers, FILE is treated as yet another "special type" (like __builtin_va_list). This change should provide a performance improvement (not verified), since the lookup into the translation unit declaration forces the (otherwise unneeded) construction of a large hash table. More importantly, with precompiled headers, the construction of that table requires deserializing most of the top-level declarations from the precompiled header, which are then unused. Fixes PR 4509. llvm-svn: 74911
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud