]> granicus.if.org Git - clang/commit
Output destructors and constructors in a more natural order.
authorRafael Espindola <rafael.espindola@gmail.com>
Mon, 9 Dec 2013 14:51:17 +0000 (14:51 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Mon, 9 Dec 2013 14:51:17 +0000 (14:51 +0000)
commitd6c0a824b6fdaffd12cf64ee136973278ae20c08
treeafb8ed3c1c78bad75fc1b51e6148d15a069711f6
parent9c009bca6da945074f0d5d496bd87da13e20eaea
Output destructors and constructors in a more natural order.

With this patch we output the in the order
C2
C1

D2
D1
D0

Which means that a destructor or constructor that call another is output after
the callee. This is a bit easier to read IHMO and a tiny bit more efficient
as we don't put a decl in DeferredDeclsToEmit.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196784 91177308-0d34-0410-b5e6-96231b3b80d8
18 files changed:
lib/CodeGen/ItaniumCXXABI.cpp
test/CodeGenCXX/abstract-class-ctors-dtors.cpp
test/CodeGenCXX/block-in-ctor-dtor.cpp
test/CodeGenCXX/constructor-destructor-return-this.cpp
test/CodeGenCXX/constructors.cpp
test/CodeGenCXX/cxx0x-defaulted-templates.cpp
test/CodeGenCXX/cxx0x-delegating-ctors.cpp
test/CodeGenCXX/default-arguments.cpp
test/CodeGenCXX/destructors.cpp
test/CodeGenCXX/eh.cpp
test/CodeGenCXX/inheriting-constructor.cpp
test/CodeGenCXX/mangle-subst-std.cpp
test/CodeGenCXX/mangle.cpp
test/CodeGenCXX/member-templates.cpp
test/CodeGenCXX/pr13396.cpp
test/CodeGenCXX/static-init.cpp
test/CodeGenCXX/virtual-bases.cpp
test/CodeGenCXX/virtual-destructor-calls.cpp