summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/strict-vtable-pointers.cpp
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2016-12-13 20:50:44 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2016-12-13 20:50:44 +0000
commit25a2b70cd0424ba3e344a70fea8dfa13a73829c2 (patch)
treecbfad442e24b31050c6e4066ee4e41641528ec2c /clang/test/CodeGenCXX/strict-vtable-pointers.cpp
parent2849c4e841ccd421b8b0ba7486cfc66db9a47632 (diff)
downloadbcm5719-llvm-25a2b70cd0424ba3e344a70fea8dfa13a73829c2.tar.gz
bcm5719-llvm-25a2b70cd0424ba3e344a70fea8dfa13a73829c2.zip
CodeGen: Start using inrange annotations on vtable getelementptr.
This annotation allows the optimizer to split vtable groups, as permitted by a change to the Itanium ABI [1] that prevents compilers from adjusting virtual table pointers between virtual tables. [1] https://github.com/MentorEmbedded/cxx-abi/pull/7 Differential Revision: https://reviews.llvm.org/D24431 llvm-svn: 289585
Diffstat (limited to 'clang/test/CodeGenCXX/strict-vtable-pointers.cpp')
-rw-r--r--clang/test/CodeGenCXX/strict-vtable-pointers.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/CodeGenCXX/strict-vtable-pointers.cpp b/clang/test/CodeGenCXX/strict-vtable-pointers.cpp
index d1d9623d804..b1fe5630cc8 100644
--- a/clang/test/CodeGenCXX/strict-vtable-pointers.cpp
+++ b/clang/test/CodeGenCXX/strict-vtable-pointers.cpp
@@ -166,13 +166,13 @@ struct DynamicDerivedMultiple;
// CHECK-CTORS: %[[THIS10:.*]] = bitcast %struct.DynamicDerivedMultiple* %[[THIS0]] to i32 (...)***
-// CHECK-CTORS: store {{.*}} @_ZTV22DynamicDerivedMultiple, i32 0, i32 0, i32 2) {{.*}} %[[THIS10]]
+// CHECK-CTORS: store {{.*}} @_ZTV22DynamicDerivedMultiple, i32 0, inrange i32 0, i32 2) {{.*}} %[[THIS10]]
// CHECK-CTORS: %[[THIS11:.*]] = bitcast %struct.DynamicDerivedMultiple* %[[THIS0]] to i8*
// CHECK-CTORS: %[[THIS_ADD:.*]] = getelementptr inbounds i8, i8* %[[THIS11]], i64 16
// CHECK-CTORS: %[[THIS12:.*]] = bitcast i8* %[[THIS_ADD]] to i32 (...)***
-// CHECK-CTORS: store {{.*}} @_ZTV22DynamicDerivedMultiple, i32 0, i32 1, i32 2) {{.*}} %[[THIS12]]
+// CHECK-CTORS: store {{.*}} @_ZTV22DynamicDerivedMultiple, i32 0, inrange i32 1, i32 2) {{.*}} %[[THIS12]]
// CHECK-CTORS-LABEL: {{^}}}
struct DynamicFromStatic;
OpenPOWER on IntegriCloud