diff options
| author | Siva Chandra <sivachandra@google.com> | 2015-01-05 23:06:14 +0000 |
|---|---|---|
| committer | Siva Chandra <sivachandra@google.com> | 2015-01-05 23:06:14 +0000 |
| commit | 89ce955a32dc4d6bd68da2e32122d3eb3345a682 (patch) | |
| tree | ec5f7cdc83e48b275ec3aa353f547c8bb92d33b0 /llvm/lib/CodeGen/LiveRegMatrix.cpp | |
| parent | d1d5cc27d68aa63afa9c964dd61cb6272eabe8b7 (diff) | |
| download | bcm5719-llvm-89ce955a32dc4d6bd68da2e32122d3eb3345a682.tar.gz bcm5719-llvm-89ce955a32dc4d6bd68da2e32122d3eb3345a682.zip | |
Make array symbol reading resilient to incomplete DWARF.
Summary:
GCC emits DW_TAG_subrange_type for static member arrays, but with no
attributes. This in turn results in wrong type/value of the array when
printing with 'target variable <array var name>'. This patch fixes this
so that the array value is printed in this format:
(<element type> []) <array var name> = {}
Earlier, the array was being interpreted to be of its element type.
Note: This does not fix anything to do with 'expr' or 'p' commands.
Those commands still error out complaining about incomplete types.
Test Plan: dotest.py -p TestStaticVariables
Reviewers: emaste, clayborg
Reviewed By: clayborg
Subscribers: lldb-commits
Differential Revision: http://reviews.llvm.org/D6799
llvm-svn: 225219
Diffstat (limited to 'llvm/lib/CodeGen/LiveRegMatrix.cpp')
0 files changed, 0 insertions, 0 deletions

