summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-07-10 06:03:22 +0000
committerChris Lattner <sabre@nondot.org>2011-07-10 06:03:22 +0000
commit18ca0475d718b199432a3813d97b002190bb8d74 (patch)
treed18bd3b0115b0b5ac6f2086247ceb2655b58b810 /clang/lib/CodeGen/CodeGenModule.cpp
parentd7c59353bdd6936647ee52336d6d9e2f54111e02 (diff)
downloadbcm5719-llvm-18ca0475d718b199432a3813d97b002190bb8d74.tar.gz
bcm5719-llvm-18ca0475d718b199432a3813d97b002190bb8d74.zip
implement a nice new optimization: CodeGenTypes::UpdateCompletedType
is called whenever a tag type is completed. We previously used that as the sign to layout the codegen representation for the tag type, which worked but meant that we laid out *every* completed type, whether it was used or not. Now we just lay out the type if we've already seen it somehow else. This means that we lay out types we've used but haven't seen a body for, but we don't lay out tons of stuff that noone cares about. llvm-svn: 134866
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud