[DWARFASTParserClang] Start with member offset of 0 for members of union types.
authorSiva Chandra <sivachandra@google.com>
Thu, 10 Mar 2016 01:15:17 +0000 (01:15 +0000)
committerSiva Chandra <sivachandra@google.com>
Thu, 10 Mar 2016 01:15:17 +0000 (01:15 +0000)
commitaaae5f87af8945cdeac81e86429a303954473a88
tree57a8fd611259d2bef4eda1516658745023814bc0
parent7776377e62abfa1fae567377d5faae74a2e559ad
[DWARFASTParserClang] Start with member offset of 0 for members of union types.

Summary:
GCC does not emit DW_AT_data_member_location for members of a union.
Starting with a 0 value for member locations helps is reading union types
in such cases.

Reviewers: clayborg

Subscribers: ldrumm, lldb-commits

Differential Revision: http://reviews.llvm.org/D18008

llvm-svn: 263085
lldb/packages/Python/lldbsuite/test/lang/c/unions/Makefile [new file with mode: 0644]
lldb/packages/Python/lldbsuite/test/lang/c/unions/TestUnionMembers.py [new file with mode: 0644]
lldb/packages/Python/lldbsuite/test/lang/c/unions/main.c [new file with mode: 0644]
lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp