Skip to content

Cherry-pick & resolve merge conflict #1956

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 14, 2020

Conversation

adrian-prantl
Copy link

for Move initialization of Variable::m_loc_is_const_data into constructor

labath and others added 3 commits October 13, 2020 14:33
…alue 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

(cherry picked from commit 9f5927e)
… (NFC)

This makes it symmetric with all other flags and makes it easier to
not forget to initialize it.

https://reviews.llvm.org/D89351
(cherry picked from commit 9b1c06c)

 Conflicts:
	lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp

 Conflicts:
	lldb/include/lldb/Symbol/Variable.h
	lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
	lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp
	lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp
	lldb/source/Symbol/Variable.cpp
@adrian-prantl
Copy link
Author

@swift-ci test

@adrian-prantl adrian-prantl merged commit e31457a into swiftlang:swift/main Oct 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants