summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/cxx11-vtable-key-function.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2015-02-28 01:01:56 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2015-02-28 01:01:56 +0000
commit91c18de7556f9524c62f655ccdda94adf3848092 (patch)
tree2ce3a4ad6be2f320764a5d4d27d23e728132224c /clang/test/CodeGenCXX/cxx11-vtable-key-function.cpp
parentf986d68b363a961a8bde29fcab649d46aaf23445 (diff)
downloadbcm5719-llvm-91c18de7556f9524c62f655ccdda94adf3848092.tar.gz
bcm5719-llvm-91c18de7556f9524c62f655ccdda94adf3848092.zip
Rework our handling of key functions. We used to track a complete list of all
dynamic classes in the translation unit and check whether each one's key function is defined when we got to the end of the TU (and when we got to the end of each module). This is really terrible for modules performance, since it causes unnecessary deserialization of every dynamic class in every compilation. We now use a much simpler (and, in a modules build, vastly more efficient) system: when we see an out-of-line definition of a virtual function, we check whether that function was in fact its class's key function. (If so, we need to emit the vtable.) llvm-svn: 230830
Diffstat (limited to 'clang/test/CodeGenCXX/cxx11-vtable-key-function.cpp')
-rw-r--r--clang/test/CodeGenCXX/cxx11-vtable-key-function.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/CodeGenCXX/cxx11-vtable-key-function.cpp b/clang/test/CodeGenCXX/cxx11-vtable-key-function.cpp
index cd2ab59506d..a4a00026487 100644
--- a/clang/test/CodeGenCXX/cxx11-vtable-key-function.cpp
+++ b/clang/test/CodeGenCXX/cxx11-vtable-key-function.cpp
@@ -10,7 +10,7 @@ struct X {
X::~X() = default;
// Verify that the vtable is emitted.
-// CHECK: @_ZTVN5Test11XE = unnamed_addr constant
+// CHECK-DAG: @_ZTVN5Test11XE = unnamed_addr constant
}
namespace Test2 {
@@ -22,7 +22,7 @@ struct X {
void X::f() {}
// Verify that the vtable is emitted.
-// CHECK: @_ZTVN5Test21XE = unnamed_addr constant
+// CHECK-DAG: @_ZTVN5Test21XE = unnamed_addr constant
}
namespace Test3 {
@@ -34,5 +34,5 @@ struct X {
void X::f() {}
// Verify that the vtable is emitted.
-// CHECK: @_ZTVN5Test31XE = unnamed_addr constant
+// CHECK-DAG: @_ZTVN5Test31XE = unnamed_addr constant
}
OpenPOWER on IntegriCloud