diff options
author | John McCall <rjmccall@apple.com> | 2013-01-25 22:31:03 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2013-01-25 22:31:03 +0000 |
commit | 6bd2a89d5ae990135b6d400982c2004ad72b9f15 (patch) | |
tree | d9cb85b4d58dd1c58f178e799bb1691b97d72a9f /clang/test/CodeGenCXX/vtable-available-externally.cpp | |
parent | 359b885e12815e8d63adcfb5760696bad82c6908 (diff) | |
download | bcm5719-llvm-6bd2a89d5ae990135b6d400982c2004ad72b9f15.tar.gz bcm5719-llvm-6bd2a89d5ae990135b6d400982c2004ad72b9f15.zip |
The standard ARM C++ ABI dictates that inline functions are
never key functions. We did not implement that rule for the
iOS ABI, which was driven by what was implemented in gcc-4.2.
However, implement it now for other ARM-based platforms.
llvm-svn: 173515
Diffstat (limited to 'clang/test/CodeGenCXX/vtable-available-externally.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/vtable-available-externally.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/clang/test/CodeGenCXX/vtable-available-externally.cpp b/clang/test/CodeGenCXX/vtable-available-externally.cpp index 23baac968c7..693b36abe50 100644 --- a/clang/test/CodeGenCXX/vtable-available-externally.cpp +++ b/clang/test/CodeGenCXX/vtable-available-externally.cpp @@ -6,13 +6,14 @@ #include <typeinfo> -// Test1::A's key function (f) is not defined in this translation unit, but in -// order to devirtualize calls, we emit the class related data with +// Test1::A's key function (f) is not defined in this translation +// unit, but in order to devirtualize calls, we emit the v-table with // available_externally linkage. +// +// There's no real reason to do this to the RTTI, though. // CHECK-TEST1: @_ZTVN5Test11AE = available_externally -// CHECK-TEST1: @_ZTSN5Test11AE = available_externally -// CHECK-TEST1: @_ZTIN5Test11AE = available_externally +// CHECK-TEST1: @_ZTIN5Test11AE = external constant i8* namespace Test1 { struct A { |