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/member-templates.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/member-templates.cpp')
| -rw-r--r-- | clang/test/CodeGenCXX/member-templates.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/CodeGenCXX/member-templates.cpp b/clang/test/CodeGenCXX/member-templates.cpp index c72dd6e5f52..93d36ff4750 100644 --- a/clang/test/CodeGenCXX/member-templates.cpp +++ b/clang/test/CodeGenCXX/member-templates.cpp @@ -15,8 +15,8 @@ struct B { template<typename T> B::B(T) {} -// CHECK-LABEL: define weak_odr void @_ZN1BC1IiEET_(%struct.B* %this, i32) unnamed_addr // CHECK-LABEL: define weak_odr void @_ZN1BC2IiEET_(%struct.B* %this, i32) unnamed_addr +// CHECK-LABEL: define weak_odr void @_ZN1BC1IiEET_(%struct.B* %this, i32) unnamed_addr template B::B(int); template<typename T> |

