summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2019-06-19 07:32:39 +0000
committerPavel Labath <pavel@labath.sk>2019-06-19 07:32:39 +0000
commit67b45acefefbbbee48ac08fc5f924758bf2553b7 (patch)
treeda54e9ecb3b170e3660a091196217787546cbe9c /llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
parent08372eb73bf0a21d8d824084cb15efd0a9ee99bb (diff)
downloadbcm5719-llvm-67b45acefefbbbee48ac08fc5f924758bf2553b7.tar.gz
bcm5719-llvm-67b45acefefbbbee48ac08fc5f924758bf2553b7.zip
DWARF: Make DIERefs always valid
Summary: This patch makes the DIERef class always valid by default constructor and operator bool. This allows one to express the validity of a DIERef in the type system. Places which are working with potentially-invalid DIERefs have been updated to use Optional<DIERef> instead. The constructor taking a DWARFFormValue was not needed, as all places which were constructing a DIERef this way were immediately converting it into a DWARFDIE or a user_id. This can be done without constructing an intermediate DIERef. Reviewers: JDevlieghere, clayborg, aprantl Subscribers: arphaman, lldb-commits Differential Revision: https://reviews.llvm.org/D63399 llvm-svn: 363767
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud