diff options
Diffstat (limited to 'test/CodeGenCXX/vtable-linkage.cpp')
-rw-r--r-- | test/CodeGenCXX/vtable-linkage.cpp | 32 |
1 files changed, 10 insertions, 22 deletions
diff --git a/test/CodeGenCXX/vtable-linkage.cpp b/test/CodeGenCXX/vtable-linkage.cpp index c17e33387e52..9c08b3037ca1 100644 --- a/test/CodeGenCXX/vtable-linkage.cpp +++ b/test/CodeGenCXX/vtable-linkage.cpp @@ -1,8 +1,6 @@ // RUN: %clang_cc1 %s -triple=x86_64-apple-darwin10 -emit-llvm -o %t -// RUN: %clang_cc1 %s -triple=x86_64-apple-darwin10 -fhidden-weak-vtables -emit-llvm -o %t.hidden // RUN: %clang_cc1 %s -triple=x86_64-apple-darwin10 -disable-llvm-optzns -O3 -emit-llvm -o %t.opt // RUN: FileCheck --check-prefix=CHECK %s < %t -// RUN: FileCheck --check-prefix=CHECK-HIDDEN %s < %t.hidden // RUN: FileCheck --check-prefix=CHECK-OPT %s < %t.opt namespace { @@ -93,57 +91,47 @@ void use_F() { // and hidden visibility (rdar://problem/7523229). // CHECK-DAG: @_ZTV1C = linkonce_odr unnamed_addr constant // CHECK-DAG: @_ZTS1C = linkonce_odr constant -// CHECK-DAG: @_ZTI1C = linkonce_odr unnamed_addr constant +// CHECK-DAG: @_ZTI1C = linkonce_odr constant // CHECK-DAG: @_ZTT1C = linkonce_odr unnamed_addr constant -// CHECK-HIDDEN-DAG: @_ZTV1C = linkonce_odr hidden unnamed_addr constant -// CHECK-HIDDEN-DAG: @_ZTS1C = linkonce_odr constant -// CHECK-HIDDEN-DAG: @_ZTI1C = linkonce_odr hidden unnamed_addr constant -// CHECK-HIDDEN-DAG: @_ZTT1C = linkonce_odr hidden unnamed_addr constant // D has a key function that is defined in this translation unit so its vtable is // defined in the translation unit. // CHECK-DAG: @_ZTV1D = unnamed_addr constant // CHECK-DAG: @_ZTS1D = constant -// CHECK-DAG: @_ZTI1D = unnamed_addr constant +// CHECK-DAG: @_ZTI1D = constant // E<char> is an explicit specialization with a key function defined // in this translation unit, so its vtable should have external // linkage. // CHECK-DAG: @_ZTV1EIcE = unnamed_addr constant // CHECK-DAG: @_ZTS1EIcE = constant -// CHECK-DAG: @_ZTI1EIcE = unnamed_addr constant +// CHECK-DAG: @_ZTI1EIcE = constant // E<short> is an explicit template instantiation with a key function // defined in this translation unit, so its vtable should have // weak_odr linkage. // CHECK-DAG: @_ZTV1EIsE = weak_odr unnamed_addr constant // CHECK-DAG: @_ZTS1EIsE = weak_odr constant -// CHECK-DAG: @_ZTI1EIsE = weak_odr unnamed_addr constant -// CHECK-HIDDEN-DAG: @_ZTV1EIsE = weak_odr unnamed_addr constant -// CHECK-HIDDEN-DAG: @_ZTS1EIsE = weak_odr constant -// CHECK-HIDDEN-DAG: @_ZTI1EIsE = weak_odr unnamed_addr constant +// CHECK-DAG: @_ZTI1EIsE = weak_odr constant // F<short> is an explicit template instantiation without a key // function, so its vtable should have weak_odr linkage // CHECK-DAG: @_ZTV1FIsE = weak_odr unnamed_addr constant // CHECK-DAG: @_ZTS1FIsE = weak_odr constant -// CHECK-DAG: @_ZTI1FIsE = weak_odr unnamed_addr constant -// CHECK-HIDDEN-DAG: @_ZTV1FIsE = weak_odr unnamed_addr constant -// CHECK-HIDDEN-DAG: @_ZTS1FIsE = weak_odr constant -// CHECK-HIDDEN-DAG: @_ZTI1FIsE = weak_odr unnamed_addr constant +// CHECK-DAG: @_ZTI1FIsE = weak_odr constant // E<long> is an implicit template instantiation with a key function // defined in this translation unit, so its vtable should have // linkonce_odr linkage. // CHECK-DAG: @_ZTV1EIlE = linkonce_odr unnamed_addr constant // CHECK-DAG: @_ZTS1EIlE = linkonce_odr constant -// CHECK-DAG: @_ZTI1EIlE = linkonce_odr unnamed_addr constant +// CHECK-DAG: @_ZTI1EIlE = linkonce_odr constant // F<long> is an implicit template instantiation with no key function, // so its vtable should have linkonce_odr linkage. // CHECK-DAG: @_ZTV1FIlE = linkonce_odr unnamed_addr constant // CHECK-DAG: @_ZTS1FIlE = linkonce_odr constant -// CHECK-DAG: @_ZTI1FIlE = linkonce_odr unnamed_addr constant +// CHECK-DAG: @_ZTI1FIlE = linkonce_odr constant // F<int> is an explicit template instantiation declaration without a // key function, so its vtable should have external linkage. @@ -160,19 +148,19 @@ void use_F() { // internal linkage. // CHECK-DAG: @"_ZTV3$_0" = internal unnamed_addr constant // CHECK-DAG: @"_ZTS3$_0" = internal constant -// CHECK-DAG: @"_ZTI3$_0" = internal unnamed_addr constant +// CHECK-DAG: @"_ZTI3$_0" = internal constant // The A vtable should have internal linkage since it is inside an anonymous // namespace. // CHECK-DAG: @_ZTVN12_GLOBAL__N_11AE = internal unnamed_addr constant // CHECK-DAG: @_ZTSN12_GLOBAL__N_11AE = internal constant -// CHECK-DAG: @_ZTIN12_GLOBAL__N_11AE = internal unnamed_addr constant +// CHECK-DAG: @_ZTIN12_GLOBAL__N_11AE = internal constant // F<char> is an explicit specialization without a key function, so // its vtable should have linkonce_odr linkage. // CHECK-DAG: @_ZTV1FIcE = linkonce_odr unnamed_addr constant // CHECK-DAG: @_ZTS1FIcE = linkonce_odr constant -// CHECK-DAG: @_ZTI1FIcE = linkonce_odr unnamed_addr constant +// CHECK-DAG: @_ZTI1FIcE = linkonce_odr constant // CHECK-DAG: @_ZTV1GIiE = linkonce_odr unnamed_addr constant template <typename T> |