diff options
author | Anders Carlsson <andersca@mac.com> | 2011-01-24 00:46:19 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2011-01-24 00:46:19 +0000 |
commit | f502d93b0ea970bfbd897e657f8d940a20984de2 (patch) | |
tree | 7c33da35e9c49d7ed029844fe3ee9bb512783f66 /test/CodeGenCXX/exceptions-no-rtti.cpp | |
parent | 15e14a289583616e582a23b320933e846a742626 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124089 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/exceptions-no-rtti.cpp')
-rw-r--r-- | test/CodeGenCXX/exceptions-no-rtti.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/CodeGenCXX/exceptions-no-rtti.cpp b/test/CodeGenCXX/exceptions-no-rtti.cpp index 39216658dc..bbbc1b8a8b 100644 --- a/test/CodeGenCXX/exceptions-no-rtti.cpp +++ b/test/CodeGenCXX/exceptions-no-rtti.cpp @@ -1,10 +1,10 @@ // RUN: %clang_cc1 -fno-rtti -fexceptions %s -triple=x86_64-apple-darwin10 -emit-llvm -o - | FileCheck %s -// CHECK: @_ZTIN5test11AE = weak_odr unnamed_addr constant -// CHECK: @_ZTIN5test11BE = weak_odr unnamed_addr constant -// CHECK: @_ZTIN5test11CE = weak_odr unnamed_addr constant -// CHECK: @_ZTIN5test11DE = weak_odr unnamed_addr constant -// CHECK: @_ZTIPN5test11DE = weak_odr unnamed_addr constant {{.*}} @_ZTIN5test11DE +// CHECK: @_ZTIN5test11AE = linkonce_odr unnamed_addr constant +// CHECK: @_ZTIN5test11BE = linkonce_odr unnamed_addr constant +// CHECK: @_ZTIN5test11CE = linkonce_odr unnamed_addr constant +// CHECK: @_ZTIN5test11DE = linkonce_odr unnamed_addr constant +// CHECK: @_ZTIPN5test11DE = linkonce_odr unnamed_addr constant {{.*}} @_ZTIN5test11DE // PR6974: this shouldn't crash namespace test0 { |