diff options
author | Reid Kleckner <rnk@google.com> | 2016-06-16 20:08:51 +0000 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2016-06-16 20:08:51 +0000 |
commit | 216d0a16745aa2009b326dd0799a2c608cf73157 (patch) | |
tree | fcd8b2add94069f635d2714c2f5b9902ed1bb900 /clang/test/CodeGenCXX/debug-info-ms-abi.cpp | |
parent | bf6a04fde8e12c61fcc1bb5826a90d386984714a (diff) | |
download | bcm5719-llvm-216d0a16745aa2009b326dd0799a2c608cf73157.tar.gz bcm5719-llvm-216d0a16745aa2009b326dd0799a2c608cf73157.zip |
[DebugInfo] Put the vftable index in the debug info
This won't always be enough info to call a virtual method from the
debugger, but it's a start.
llvm-svn: 272944
Diffstat (limited to 'clang/test/CodeGenCXX/debug-info-ms-abi.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/debug-info-ms-abi.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/clang/test/CodeGenCXX/debug-info-ms-abi.cpp b/clang/test/CodeGenCXX/debug-info-ms-abi.cpp index 78979952b44..1664da38a8c 100644 --- a/clang/test/CodeGenCXX/debug-info-ms-abi.cpp +++ b/clang/test/CodeGenCXX/debug-info-ms-abi.cpp @@ -3,11 +3,17 @@ // Tests that certain miscellaneous features work in the MS ABI. struct Foo { + virtual void f(); + virtual void g(); + virtual void h(); struct Nested {}; }; Foo f; Foo::Nested n; -// CHECK: distinct !DICompositeType(tag: DW_TAG_structure_type, name: "Foo", +// CHECK: ![[Foo:[^ ]*]] = distinct !DICompositeType(tag: DW_TAG_structure_type, name: "Foo", // CHECK-SAME: identifier: ".?AUFoo@@" +// CHECK: !DISubprogram(name: "f", {{.*}} containingType: ![[Foo]], virtuality: DW_VIRTUALITY_virtual, virtualIndex: 0, {{.*}}) +// CHECK: !DISubprogram(name: "g", {{.*}} containingType: ![[Foo]], virtuality: DW_VIRTUALITY_virtual, virtualIndex: 1, {{.*}}) +// CHECK: !DISubprogram(name: "h", {{.*}} containingType: ![[Foo]], virtuality: DW_VIRTUALITY_virtual, virtualIndex: 2, {{.*}}) // CHECK: distinct !DICompositeType(tag: DW_TAG_structure_type, name: "Nested", // CHECK-SAME: identifier: ".?AUNested@Foo@@" |