summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/thunks.cpp
diff options
context:
space:
mode:
authorPiotr Padlewski <prazek@google.com>2015-08-27 21:35:41 +0000
committerPiotr Padlewski <prazek@google.com>2015-08-27 21:35:41 +0000
commit81461a4350a105f73b40c3212baafd2b66d3ce22 (patch)
tree99c95d7c72c6d247efa6911e625241f0b4af0712 /clang/test/CodeGenCXX/thunks.cpp
parent525f746710c9b132b20b653d5d8bd130e9bd5e59 (diff)
downloadbcm5719-llvm-81461a4350a105f73b40c3212baafd2b66d3ce22.tar.gz
bcm5719-llvm-81461a4350a105f73b40c3212baafd2b66d3ce22.zip
Assume loads fix #2
There was linker problem, and it turns out that it is not always safe to refer to vtable. If the vtable is used, then we can refer to it without any problem, but because we don't know when it will be used or not, we can only check if vtable is external or it is safe to to emit it speculativly (when class it doesn't have any inline virtual functions). It should be fixed in the future. http://reviews.llvm.org/D12385 llvm-svn: 246214
Diffstat (limited to 'clang/test/CodeGenCXX/thunks.cpp')
-rw-r--r--clang/test/CodeGenCXX/thunks.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/test/CodeGenCXX/thunks.cpp b/clang/test/CodeGenCXX/thunks.cpp
index 3e5f0059b8f..d460fe3fd5d 100644
--- a/clang/test/CodeGenCXX/thunks.cpp
+++ b/clang/test/CodeGenCXX/thunks.cpp
@@ -398,11 +398,13 @@ D::~D() {}
// Checking with opt
// CHECK-OPT-LABEL: define internal void @_ZThn8_N6Test4B12_GLOBAL__N_11C1fEv(%"struct.Test4B::(anonymous namespace)::C"* %this) unnamed_addr #0 align 2
+// This is from Test5:
+// CHECK-OPT-LABEL: define linkonce_odr void @_ZTv0_n24_N5Test51B1fEv
+
// This is from Test10:
// CHECK-OPT-LABEL: define linkonce_odr void @_ZN6Test101C3fooEv
// CHECK-OPT-LABEL: define linkonce_odr void @_ZThn8_N6Test101C3fooEv
-// This is from Test5:
-// CHECK-OPT-LABEL: define linkonce_odr void @_ZTv0_n24_N5Test51B1fEv
+
// CHECK: attributes [[NUW]] = { nounwind uwtable{{.*}} }
OpenPOWER on IntegriCloud