]> granicus.if.org Git - clang/commit
Emit standard-library RTTI with external linkage, not weak_odr.
authorJohn McCall <rjmccall@apple.com>
Wed, 4 Aug 2010 08:34:44 +0000 (08:34 +0000)
committerJohn McCall <rjmccall@apple.com>
Wed, 4 Aug 2010 08:34:44 +0000 (08:34 +0000)
commitcbfe50224b19119e759802bd0c1463269dffd09e
treee7d15b5599d9f22a0502f085031bd854574cf50b
parent72905cfa81cfd126f322c4173f56d332aac5539e
Emit standard-library RTTI with external linkage, not weak_odr.

Apply hidden visibility to most RTTI;  libstdc++ does not rely on exact
pointer equality for the type info (just the type info names).  Apply
the same optimization to RTTI that we do to vtables.

Fixes PR5962.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110192 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGRTTI.cpp
lib/CodeGen/CGVTables.cpp
lib/CodeGen/CodeGenModule.cpp
lib/CodeGen/CodeGenModule.h
test/CodeGenCXX/exceptions-no-rtti.cpp
test/CodeGenCXX/rtti-fundamental.cpp
test/CodeGenCXX/rtti-linkage.cpp
test/CodeGenCXX/vtable-linkage.cpp
test/SemaCXX/typeid-ref.cpp