diff options
| author | Kazu Hirata <kazu@google.com> | 2023-01-07 14:18:35 -0800 |
|---|---|---|
| committer | Kazu Hirata <kazu@google.com> | 2023-01-07 14:18:35 -0800 |
| commit | 2fe8327406050d2585d2ced910a678e28caefcf5 (patch) | |
| tree | da95c78fa33c17cf7829bbe6f5e0bfa62e0579ae /lldb/source/Plugins/SymbolFile/DWARF/ManualDWARFIndex.cpp | |
| parent | f190ce625ab0dc5a5e2b2515e6d26debb34843ab (diff) | |
[lldb] Use std::optional instead of llvm::Optional (NFC)
This patch replaces (llvm::|)Optional< with std::optional<. I'll post
a separate patch to clean up the "using" declarations, #include
"llvm/ADT/Optional.h", etc.
This is part of an effort to migrate from llvm::Optional to
std::optional:
https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
Diffstat (limited to 'lldb/source/Plugins/SymbolFile/DWARF/ManualDWARFIndex.cpp')
| -rw-r--r-- | lldb/source/Plugins/SymbolFile/DWARF/ManualDWARFIndex.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/SymbolFile/DWARF/ManualDWARFIndex.cpp b/lldb/source/Plugins/SymbolFile/DWARF/ManualDWARFIndex.cpp index 4bfa357bb4ad..9afed8f4ff9b 100644 --- a/lldb/source/Plugins/SymbolFile/DWARF/ManualDWARFIndex.cpp +++ b/lldb/source/Plugins/SymbolFile/DWARF/ManualDWARFIndex.cpp @@ -82,7 +82,7 @@ void ManualDWARFIndex::Index() { // Keep memory down by clearing DIEs for any units if indexing // caused us to load the unit's DIEs. - std::vector<llvm::Optional<DWARFUnit::ScopedExtractDIEs>> clear_cu_dies( + std::vector<std::optional<DWARFUnit::ScopedExtractDIEs>> clear_cu_dies( units_to_index.size()); auto parser_fn = [&](size_t cu_idx) { IndexUnit(*units_to_index[cu_idx], dwp_dwarf, sets[cu_idx]); |
