summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/vtable-key-function.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2011-01-24 00:46:19 +0000
committerAnders Carlsson <andersca@mac.com>2011-01-24 00:46:19 +0000
commit571e2ad0429fee7f214361276f502a54b4c5f891 (patch)
treec4857124518803129cea144822e40553f0a44e1c /clang/test/CodeGenCXX/vtable-key-function.cpp
parenta960725d18fd8686c517aecf25584a3c5a4da9d6 (diff)
downloadbcm5719-llvm-571e2ad0429fee7f214361276f502a54b4c5f891.tar.gz
bcm5719-llvm-571e2ad0429fee7f214361276f502a54b4c5f891.zip
Mark VTables and RTTI data linkonce_odr instead of weak_odr, with the exception of explicit template instantiations, which have to be weak_odr.
This fixes PR6996. llvm-svn: 124089
Diffstat (limited to 'clang/test/CodeGenCXX/vtable-key-function.cpp')
-rw-r--r--clang/test/CodeGenCXX/vtable-key-function.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/CodeGenCXX/vtable-key-function.cpp b/clang/test/CodeGenCXX/vtable-key-function.cpp
index a9e4513b164..bf2e6798d21 100644
--- a/clang/test/CodeGenCXX/vtable-key-function.cpp
+++ b/clang/test/CodeGenCXX/vtable-key-function.cpp
@@ -9,7 +9,7 @@ struct A {
// A does not have a key function, so the first constructor we emit should
// cause the vtable to be defined (without assertions.)
-// CHECK: @_ZTVN6PR56971AE = weak_odr unnamed_addr constant
+// CHECK: @_ZTVN6PR56971AE = linkonce_odr unnamed_addr constant
A::A() { }
A::A(int) { }
}
OpenPOWER on IntegriCloud