diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-07-03 00:47:00 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-07-03 00:47:00 +0000 |
commit | 9672f92f7f2c5a58037ee6ee38004330d80f3372 (patch) | |
tree | 958a5b6191a0723112eab72105117d24b2975587 /clang/lib/CodeGen/GlobalDecl.h | |
parent | 0664a67fe1cf6bbf93b51153c8cd452409995efb (diff) | |
download | bcm5719-llvm-9672f92f7f2c5a58037ee6ee38004330d80f3372.tar.gz bcm5719-llvm-9672f92f7f2c5a58037ee6ee38004330d80f3372.zip |
Lazily declare default constructors. We now delay the construction of
declarations for implicit default constructors, copy constructors,
copy assignment operators, and destructors. On a "simple" translation
unit that includes a bunch of C++ standard library headers, we
generate relatively few of these implicit declarations now:
4/159 implicit default constructors created
18/236 implicit copy constructors created
70/241 implicit copy assignment operators created
0/173 implicit destructors created
And, on this translation unit, this optimization doesn't really
provide any benefit. I'll do some more performance measurements soon,
but this completes the implementation work for <rdar://problem/8151045>.
llvm-svn: 107551
Diffstat (limited to 'clang/lib/CodeGen/GlobalDecl.h')
0 files changed, 0 insertions, 0 deletions