]> granicus.if.org Git - clang/commit
Just disable the hidden-visibility optimization for now by hiding it behind
authorJohn McCall <rjmccall@apple.com>
Thu, 12 Aug 2010 23:36:15 +0000 (23:36 +0000)
committerJohn McCall <rjmccall@apple.com>
Thu, 12 Aug 2010 23:36:15 +0000 (23:36 +0000)
commit279b5eb6910d64a293e9c0e2887a05c65d8737d7
tree5537a0f31a4265fc8167a0c7dd6868338f1d2b0a
parentf18d0d8b39e891460d50f8a8b85029885b264986
Just disable the hidden-visibility optimization for now by hiding it behind
a -cc1 option.  The Darwin linker complains about mixed visibility when linking
gcc-built objects with clang-built objects, and the optimization isn't really
that valuable.  Platforms with less ornery linkers can feel free to enable this.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110979 91177308-0d34-0410-b5e6-96231b3b80d8
15 files changed:
include/clang/Driver/CC1Options.td
include/clang/Frontend/CodeGenOptions.h
lib/CodeGen/CGRTTI.cpp
lib/CodeGen/CGVTables.cpp
lib/CodeGen/CodeGenModule.cpp
lib/Frontend/CompilerInvocation.cpp
test/CodeGenCXX/exceptions-no-rtti.cpp
test/CodeGenCXX/key-function-vtable.cpp
test/CodeGenCXX/rtti-linkage.cpp
test/CodeGenCXX/thunks.cpp
test/CodeGenCXX/virt-template-vtable.cpp
test/CodeGenCXX/vtable-key-function.cpp
test/CodeGenCXX/vtable-linkage.cpp
test/CodeGenObjCXX/rtti.mm
test/SemaCXX/typeid-ref.cpp