]> granicus.if.org Git - clang/commit
Reland r312224 - [ItaniumCXXABI] Always use linkonce_odr linkage for RTTI data on...
authorMartin Storsjo <martin@martin.st>
Fri, 1 Sep 2017 06:41:55 +0000 (06:41 +0000)
committerMartin Storsjo <martin@martin.st>
Fri, 1 Sep 2017 06:41:55 +0000 (06:41 +0000)
commit618f522e3f279b7d9e106d91610586996451700b
tree12e75bf360e96db79938fb01ccaac3f30c1ff122
parentdbd62fc14b168b7ae0b60c6002504a4feb0c83cd
Reland r312224 - [ItaniumCXXABI] Always use linkonce_odr linkage for RTTI data on MinGW

This fixes cases where dynamic classes produced RTTI data with
external linkage, producing linker errors about duplicate symbols.

This touches code close to what was changed in SVN r244266, but
this change doesn't break the tests added in that revision.

The previous version had missed to update CodeGenCXX/virt-dtor-key.cpp,
which had a behaviour change only when running the testsuite on windows.

Differential revision: https://reviews.llvm.org/D37327

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@312306 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/ItaniumCXXABI.cpp
test/CodeGenCXX/rtti-mingw64.cpp
test/CodeGenCXX/virt-dtor-key.cpp