diff options
author | John McCall <rjmccall@apple.com> | 2010-02-19 01:32:20 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-02-19 01:32:20 +0000 |
commit | d46f98573ba104eda102dd3224b2dca69f1c6336 (patch) | |
tree | 0df0c66590c9ca2c964bb610ce0a72a743c51cfe /test/CodeGenCXX/virtual-destructor-calls.cpp | |
parent | 008847a70ab122a99911149199855060fb3753b4 (diff) |
Re-introduce the ctor/dtor alias optimization, this time hidden behind a
command-line option which defaults off.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96649 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/virtual-destructor-calls.cpp')
-rw-r--r-- | test/CodeGenCXX/virtual-destructor-calls.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/CodeGenCXX/virtual-destructor-calls.cpp b/test/CodeGenCXX/virtual-destructor-calls.cpp index 0a10fd138f..91fd598d4c 100644 --- a/test/CodeGenCXX/virtual-destructor-calls.cpp +++ b/test/CodeGenCXX/virtual-destructor-calls.cpp @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -emit-llvm %s -o - -triple=x86_64-apple-darwin10 | FileCheck %s +// RUN: %clang_cc1 -emit-llvm %s -o - -triple=x86_64-apple-darwin10 -mconstructor-aliases | FileCheck %s struct A { virtual ~A(); @@ -8,9 +8,8 @@ struct B : A { virtual ~B(); }; -// Complete dtor: just defers to base dtor because there are no vbases. -// CHECK: define void @_ZN1BD1Ev -// CHECK: call void @_ZN1BD2Ev +// Complete dtor: just an alias because there are no virtual bases. +// CHECK: @_ZN1BD1Ev = alias {{.*}} @_ZN1BD2Ev // Deleting dtor: defers to the complete dtor. // CHECK: define void @_ZN1BD0Ev |