aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/ReachingDefAnalysis.cpp
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2020-08-21 15:13:29 +0200
committerPavel Labath <pavel@labath.sk>2020-08-26 13:17:26 +0200
commit82982304d7095891b10faacdbf9b4eb73e92a92f (patch)
treef9a4f71995fa1afa24b262770c80c05ac0dd8248 /llvm/lib/CodeGen/ReachingDefAnalysis.cpp
parent7749e2de20d82a6bb8b8beaa74b2a8dbd8232067 (diff)
downloadllvm-82982304d7095891b10faacdbf9b4eb73e92a92f.zip
llvm-82982304d7095891b10faacdbf9b4eb73e92a92f.tar.gz
llvm-82982304d7095891b10faacdbf9b4eb73e92a92f.tar.bz2
[lldb/DWARF] More DW_AT_const_value fixes
This fixes several issues in handling of DW_AT_const_value attributes: - the first is that the size of the data given by data forms does not need to match the size of the underlying variable. We already had the case to handle this for DW_FORM_(us)data -- this extends the handling to other data forms. The main reason this was not picked up is because clang uses leb forms in these cases while gcc prefers the fixed-size ones. - The handling of DW_AT_strp form was completely broken -- we would end up using the pointer value as the result. I've reorganized this code so that it handles all string forms uniformly. - In case of a completely bogus form we would crash due to strlen(nullptr). Depends on D86311. Differential Revision: https://reviews.llvm.org/D86348
Diffstat (limited to 'llvm/lib/CodeGen/ReachingDefAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions