diff options
author | John McCall <rjmccall@apple.com> | 2010-08-12 23:36:15 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-08-12 23:36:15 +0000 |
commit | b3732bb3b76a4e12212f5e672ab281bd96ff906d (patch) | |
tree | 11485047f9cec4b171682dd3be091f5b2f4c8327 /clang/test/CodeGenCXX/thunks.cpp | |
parent | 0e93f017e5fecf01b207a60cc94964ffbe525348 (diff) | |
download | bcm5719-llvm-b3732bb3b76a4e12212f5e672ab281bd96ff906d.tar.gz bcm5719-llvm-b3732bb3b76a4e12212f5e672ab281bd96ff906d.zip |
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.
llvm-svn: 110979
Diffstat (limited to 'clang/test/CodeGenCXX/thunks.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/thunks.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/clang/test/CodeGenCXX/thunks.cpp b/clang/test/CodeGenCXX/thunks.cpp index 5ecaacb16a9..ba60385ab6f 100644 --- a/clang/test/CodeGenCXX/thunks.cpp +++ b/clang/test/CodeGenCXX/thunks.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 %s -triple=x86_64-apple-darwin10 -emit-llvm -o - | FileCheck %s +// RUN: %clang_cc1 %s -triple=x86_64-apple-darwin10 -fhidden-weak-vtables -emit-llvm -o - | FileCheck -check-prefix=HIDDEN %s namespace Test1 { @@ -251,8 +252,8 @@ namespace Test10 { struct B { virtual void foo(); }; struct C : A, B { void foo() {} }; - // CHECK: define linkonce_odr void @_ZN6Test101C3fooEv - // CHECK: define linkonce_odr hidden void @_ZThn8_N6Test101C3fooEv + // CHECK-HIDDEN: define linkonce_odr void @_ZN6Test101C3fooEv + // CHECK-HIDDEN: define linkonce_odr hidden void @_ZThn8_N6Test101C3fooEv void test() { C c; @@ -262,5 +263,5 @@ namespace Test10 { /**** The following has to go at the end of the file ****/ // This is from Test5: -// CHECK: define linkonce_odr hidden void @_ZTv0_n24_N5Test51B1fEv +// CHECK: define linkonce_odr void @_ZTv0_n24_N5Test51B1fEv // CHECK: define internal void @_ZThn8_N12_GLOBAL__N_11C1fEv( |