diff options
author | Matt Davis <Matthew.Davis@sony.com> | 2018-03-08 22:22:26 +0000 |
---|---|---|
committer | Matt Davis <Matthew.Davis@sony.com> | 2018-03-08 22:22:26 +0000 |
commit | 4c77cb7d125058d9e29f77c7a36006d1b66f3be8 (patch) | |
tree | f3f4734ac7387e752004fc8906b65c11fb236fd7 /llvm/lib/Object/MachOObjectFile.cpp | |
parent | ee770e9c4eb3d5582c2628d97335278d83b2fea9 (diff) | |
download | bcm5719-llvm-4c77cb7d125058d9e29f77c7a36006d1b66f3be8.tar.gz bcm5719-llvm-4c77cb7d125058d9e29f77c7a36006d1b66f3be8.zip |
[DebugInfo] Add DW_AT_byte_size to vectors
Summary:
This patch adds the DW_AT_byte_size dwarf attribute to vectors.
This fixes PR21924
LLVM will round a vector up to the next alignable address, which can result in
the vector's representation in the object file being larger than what the
debugger will calculate via NumberOfElements * ElementSize. In such a case calling sizeof(MyVec) in the source will result in a different value than what a debugger might present. This situation can occur because LLVM permits non-power of two 'vector_size' attributes.
Reviewers: echristo, dexonsmith, aprantl
Reviewed By: aprantl
Subscribers: probinson, aprantl, llvm-commits, JDevlieghere
Tags: #debug-info
Differential Revision: https://reviews.llvm.org/D44048
llvm-svn: 327072
Diffstat (limited to 'llvm/lib/Object/MachOObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions