aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2020-08-26 14:13:54 +0200
committerPavel Labath <pavel@labath.sk>2020-08-27 15:05:47 +0200
commit9f5927e42bf4a7448dc9dd3a1550d1126c595dad (patch)
tree665b9985fc4c114d963d8952968e41983981c955 /clang/lib/Frontend/CompilerInvocation.cpp
parent219ccdfddecb963971ad14b5c14220b896d2c2e7 (diff)
downloadllvm-9f5927e42bf4a7448dc9dd3a1550d1126c595dad.zip
llvm-9f5927e42bf4a7448dc9dd3a1550d1126c595dad.tar.gz
llvm-9f5927e42bf4a7448dc9dd3a1550d1126c595dad.tar.bz2
[lldb/DWARF] Fix handling of variables with both location and const_value attributes
Class-level static constexpr variables can have both DW_AT_const_value (in the "declaration") and a DW_AT_location (in the "definition") attributes. Our code was trying to handle this, but it was brittle and hard to follow (and broken) because it was processing the attributes in the order in which they were found. Refactor the code to make the intent clearer -- DW_AT_location trumps DW_AT_const_value, and fix the bug which meant that we were not displaying these variables properly (the culprit was the delayed parsing of the const_value attribute due to a need to fetch the variable type. Differential Revision: https://reviews.llvm.org/D86615
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions