2017-06-10 04:46:17 +08:00
|
|
|
; RUN: llvm-pdbutil pretty -types %p/Inputs/ClassLayoutTest.pdb > %t
|
2016-01-04 01:22:03 +08:00
|
|
|
; RUN: FileCheck -input-file=%t %s -check-prefix=GLOBAL_ENUM
|
|
|
|
; RUN: FileCheck -input-file=%t %s -check-prefix=MEMBER_ENUM
|
|
|
|
|
|
|
|
; GLOBAL_ENUM: ---TYPES---
|
|
|
|
; GLOBAL_ENUM: Enums:
|
|
|
|
; GLOBAL_ENUM: enum GlobalsTest::Enum {
|
|
|
|
; GLOBAL_ENUM-NEXT: Val1 = 0
|
|
|
|
; GLOBAL_ENUM-NEXT: }
|
|
|
|
|
|
|
|
; MEMBER_ENUM: ---TYPES---
|
|
|
|
; MEMBER_ENUM: Classes:
|
[llvm-pdbdump] More advanced class definition dumping.
Previously the dumping of class definitions was very primitive,
and it made it hard to do more than the most trivial of output
formats when dumping. As such, we would only dump one line for
each field, and then dump non-layout items like nested types
and enums.
With this patch, we do a complete analysis of the object
hierarchy including aggregate types, bases, virtual bases,
vftable analysis, etc. The only immediately visible effects
of this are that a) we can now dump a line for the vfptr where
before we would treat that as padding, and b) we now don't
treat virtual bases that come at the end of a class as padding
since we have a more detailed analysis of the class's storage
usage.
In subsequent patches, we should be able to use this analysis
to display a complete graphical view of a class's layout including
recursing arbitrarily deep into an object's base class / aggregate
member hierarchy.
llvm-svn: 300133
2017-04-13 07:18:21 +08:00
|
|
|
; MEMBER_ENUM: struct __vc_attributes::threadingAttribute [sizeof = 4] {
|
2016-01-04 01:22:03 +08:00
|
|
|
; MEMBER_ENUM-NEXT: enum threading_e {
|
|
|
|
; MEMBER_ENUM-NEXT: apartment = 1
|
|
|
|
; MEMBER_ENUM-NEXT: single = 2
|
|
|
|
; MEMBER_ENUM-NEXT: free = 3
|
|
|
|
; MEMBER_ENUM-NEXT: neutral = 4
|
|
|
|
; MEMBER_ENUM-NEXT: both = 5
|
|
|
|
; MEMBER_ENUM-NEXT: }
|