diff options
author | Jim Laskey <jlaskey@mac.com> | 2006-03-03 15:06:57 +0000 |
---|---|---|
committer | Jim Laskey <jlaskey@mac.com> | 2006-03-03 15:06:57 +0000 |
commit | f01e54770033fe6dde528eea655d91e279b43d21 (patch) | |
tree | 8288252fe1c36dddac9b69973162bb0dd5e1cd49 /lib/CodeGen/MachineDebugInfo.cpp | |
parent | 3e1ce5a44d3d59b2b9ca68a21261f0f487d69269 (diff) |
Adding basic structure support.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26505 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineDebugInfo.cpp')
-rw-r--r-- | lib/CodeGen/MachineDebugInfo.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/CodeGen/MachineDebugInfo.cpp b/lib/CodeGen/MachineDebugInfo.cpp index c530941705..8e1d8f22c2 100644 --- a/lib/CodeGen/MachineDebugInfo.cpp +++ b/lib/CodeGen/MachineDebugInfo.cpp @@ -516,6 +516,7 @@ DebugInfoDesc *DebugInfoDesc::DescFactory(unsigned Tag) { case DW_TAG_union_type: case DW_TAG_enumeration_type: return new CompositeTypeDesc(Tag); case DW_TAG_subrange_type: return new SubrangeDesc(); + case DW_TAG_member: return new DerivedTypeDesc(DW_TAG_member); case DW_TAG_enumerator: return new EnumeratorDesc(); default: break; } @@ -673,6 +674,7 @@ TypeDesc::TypeDesc(unsigned T) , Name("") , File(NULL) , Size(0) +, Offset(0) {} /// ApplyToFields - Target the visitor to the fields of the TypeDesc. @@ -685,6 +687,7 @@ void TypeDesc::ApplyToFields(DIVisitor *Visitor) { Visitor->Apply((DebugInfoDesc *&)File); Visitor->Apply(Line); Visitor->Apply(Size); + Visitor->Apply(Offset); } /// getDescString - Return a string used to compose global names and labels. @@ -707,7 +710,8 @@ void TypeDesc::dump() { << "Name(\"" << Name << "\"), " << "File(" << File << "), " << "Line(" << Line << "), " - << "Size(" << Size << ")\n"; + << "Size(" << Size << "), " + << "Offset(" << Offset << ")\n"; } #endif @@ -771,6 +775,7 @@ bool DerivedTypeDesc::classof(const DebugInfoDesc *D) { case DW_TAG_const_type: case DW_TAG_volatile_type: case DW_TAG_restrict_type: + case DW_TAG_member: return true; default: break; } |