diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-12-09 14:51:17 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-12-09 14:51:17 +0000 |
commit | c3cde36ead0f088c3948329ac0e6f493a9422a86 (patch) | |
tree | 22838f109cebb21d0f664d6dbf4aca597504be6d /clang/test/CodeGenCXX/inheriting-constructor.cpp | |
parent | 63af7c482d4482fb7f93044b96aa5a148895aca9 (diff) | |
download | bcm5719-llvm-c3cde36ead0f088c3948329ac0e6f493a9422a86.tar.gz bcm5719-llvm-c3cde36ead0f088c3948329ac0e6f493a9422a86.zip |
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.
llvm-svn: 196784
Diffstat (limited to 'clang/test/CodeGenCXX/inheriting-constructor.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/inheriting-constructor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/CodeGenCXX/inheriting-constructor.cpp b/clang/test/CodeGenCXX/inheriting-constructor.cpp index c99a20c730e..9394137e641 100644 --- a/clang/test/CodeGenCXX/inheriting-constructor.cpp +++ b/clang/test/CodeGenCXX/inheriting-constructor.cpp @@ -11,9 +11,9 @@ struct C { template<typename T> C(T); }; struct D : C { using C::C; }; D d(123); -// CHECK-LABEL: define void @_ZN1BD0Ev -// CHECK-LABEL: define void @_ZN1BD1Ev // CHECK-LABEL: define void @_ZN1BD2Ev +// CHECK-LABEL: define void @_ZN1BD1Ev +// CHECK-LABEL: define void @_ZN1BD0Ev // CHECK-LABEL: define linkonce_odr void @_ZN1BC1Ei( // CHECK: call void @_ZN1BC2Ei( |