summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2014-08-07 20:36:48 +0000
committerReid Kleckner <reid@kleckner.net>2014-08-07 20:36:48 +0000
commit65a2f640d1b4283fee075e484c2185425631245b (patch)
tree2af6287c66a25c805cb90095765de61260264597 /clang/test/CodeGenCXX
parentcc847b637637584f76066a7a02b4178eec99f65b (diff)
downloadbcm5719-llvm-65a2f640d1b4283fee075e484c2185425631245b.tar.gz
bcm5719-llvm-65a2f640d1b4283fee075e484c2185425631245b.zip
Revert "Debug info: Use record layout to find vbase offsets instead of vtables"
This reverts commit r215137. This doesn't work at all, an offset-offset is probably different than an offset. I'm scared that this passed our normal test suite. llvm-svn: 215141
Diffstat (limited to 'clang/test/CodeGenCXX')
-rw-r--r--clang/test/CodeGenCXX/debug-info.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/clang/test/CodeGenCXX/debug-info.cpp b/clang/test/CodeGenCXX/debug-info.cpp
index a3b75e2e143..7c89dfc04ce 100644
--- a/clang/test/CodeGenCXX/debug-info.cpp
+++ b/clang/test/CodeGenCXX/debug-info.cpp
@@ -1,6 +1,4 @@
// RUN: %clang_cc1 -triple x86_64-none-linux-gnu -emit-llvm -g %s -o - | FileCheck %s
-// RUN: %clang_cc1 -triple i686-pc-windows-msvc -emit-llvm -g %s -o - | FileCheck %s --check-prefix=MSVC
-
template<typename T> struct Identity {
typedef T Type;
};
@@ -45,18 +43,14 @@ namespace VirtualDtor {
}
namespace VirtualBase {
- struct A { int a; };
- struct B : virtual A { int b; };
+ struct A { };
+ struct B : virtual A { };
void f() {
B b;
}
}
-// MSVC: [[VBASE_B:![0-9]+]] = metadata !{i32 {{.*}}, metadata !"B", i32 {{[0-9]*}}, i64 96, i64 32, i32 0, i32 0, null, metadata [[ZZZ:![0-9]+]], i32 0, {{.*}}} ; [ DW_TAG_structure_type ] [B] [line 49, size 96, align 32, offset 0] [def] [from ]
-// MSVC: [[ZZZ]] = metadata !{metadata [[VBASE_A_IN_B:![0-9]+]],
-// MSVC: [[VBASE_A_IN_B]] = metadata !{i32 786460, null, metadata [[VBASE_B]], null, i32 0, i64 0, i64 0, i64 -8, i32 32, metadata !{{[0-9]*}}} ; [ DW_TAG_inheritance ] [line 0, size 0, align 0, offset 18446744073709551608] [from A]
-
namespace b5249287 {
template <typename T> class A {
struct B;
OpenPOWER on IntegriCloud