diff options
author | John McCall <rjmccall@apple.com> | 2010-08-03 07:24:12 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-08-03 07:24:12 +0000 |
commit | 5696d6d316ed7a66aa405450b7991a8eee8937b8 (patch) | |
tree | 951fc7cbac949009c4c4b76d079395e16df96f50 /clang/test/CodeGenCXX/key-function-vtable.cpp | |
parent | 42b8c30de6c36b415d3ae7b6f962d3e84c936882 (diff) | |
download | bcm5719-llvm-5696d6d316ed7a66aa405450b7991a8eee8937b8.tar.gz bcm5719-llvm-5696d6d316ed7a66aa405450b7991a8eee8937b8.zip |
Emit weak vtables of non-template classes with hidden visibility.
llvm-svn: 110107
Diffstat (limited to 'clang/test/CodeGenCXX/key-function-vtable.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/key-function-vtable.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/test/CodeGenCXX/key-function-vtable.cpp b/clang/test/CodeGenCXX/key-function-vtable.cpp index 1cfeb0c5022..e71fba692f8 100644 --- a/clang/test/CodeGenCXX/key-function-vtable.cpp +++ b/clang/test/CodeGenCXX/key-function-vtable.cpp @@ -12,11 +12,11 @@ testb *testbvar = new testb; struct testc { virtual void a(); }; inline void testc::a() {} -// Key functions with inline specifier (PR5705) +// Functions with inline specifier are not key functions (PR5705) struct testd { inline virtual void a(); }; void testd::a() {} -// Key functions with inline specifier (PR5705) +// Functions with inline specifier are not key functions (PR5705) struct teste { inline virtual void a(); }; teste *testevar = new teste; @@ -47,5 +47,5 @@ void use_X1(X1 *x1) { x1->f(); } // CHECK: @_ZTV5testa = constant [3 x i8*] [i8* null // CHECK: @_ZTV5testc = weak_odr constant [3 x i8*] [i8* null // CHECK: @_ZTVN12_GLOBAL__N_15testgE = internal constant [3 x i8*] [i8* null -// CHECK: @_ZTV5teste = weak_odr constant [3 x i8*] [i8* null -// CHECK: @_ZTV5testb = weak_odr constant [3 x i8*] [i8* null +// CHECK: @_ZTV5teste = weak_odr hidden constant [3 x i8*] [i8* null +// CHECK: @_ZTV5testb = weak_odr hidden constant [3 x i8*] [i8* null |