diff options
| author | Zachary Turner <zturner@google.com> | 2017-04-06 23:43:39 +0000 |
|---|---|---|
| committer | Zachary Turner <zturner@google.com> | 2017-04-06 23:43:39 +0000 |
| commit | 10169b6d0daa53b741a779909bfe241783aff22e (patch) | |
| tree | c2809fd90f3225bd18869a82cccfbde78666b1ca /llvm/test/tools/llvm-pdbdump/class-layout.test | |
| parent | 63230a4e7109b433f8ce09f78b16709229d05bc6 (diff) | |
| download | bcm5719-llvm-10169b6d0daa53b741a779909bfe241783aff22e.tar.gz bcm5719-llvm-10169b6d0daa53b741a779909bfe241783aff22e.zip | |
Allow specification of what kinds of class members to dump.
Previously when dumping class definitions, there were only
two modes - on or off. But it's useful to sometimes get a
little more fine-grained. For example, you might only want
to see the record layout (for example to look for extraneous
padding). This patch adds a third mode, layout mode, which
does exactly that. Only this-relative data members are
displayed in this mode.
Differential Revision: https://reviews.llvm.org/D31794
llvm-svn: 299733
Diffstat (limited to 'llvm/test/tools/llvm-pdbdump/class-layout.test')
| -rw-r--r-- | llvm/test/tools/llvm-pdbdump/class-layout.test | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/test/tools/llvm-pdbdump/class-layout.test b/llvm/test/tools/llvm-pdbdump/class-layout.test index d2e98de2a20..93127b109a9 100644 --- a/llvm/test/tools/llvm-pdbdump/class-layout.test +++ b/llvm/test/tools/llvm-pdbdump/class-layout.test @@ -17,9 +17,7 @@ ; MEMBERS_TEST: class MembersTest::A { ; MEMBERS_TEST-DAG: typedef int NestedTypedef ; MEMBERS_TEST-DAG: enum NestedEnum -; MEMBERS_TEST: public: -; MEMBERS_TEST-NEXT: void MemberFunc() -; MEMBERS_TEST-NEXT: private: +; MEMBERS_TEST: void MemberFunc() ; MEMBERS_TEST-DAG: int IntMemberVar ; MEMBERS_TEST-DAG: double DoubleMemberVar ; MEMBERS_TEST: } @@ -48,7 +46,6 @@ ; BITFIELD_TEST: ---TYPES--- ; BITFIELD_TEST: struct BitFieldTest::A { -; BITFIELD_TEST-NEXT: public: ; BITFIELD_TEST-NEXT: +0x00 int Bits1 : 1 ; BITFIELD_TEST-NEXT: +0x00 int Bits2 : 2 ; BITFIELD_TEST-NEXT: +0x00 int Bits3 : 3 |

