[Lldb-commits] [PATCH] D51578: Contiguous .debug_info+.debug_types for D32167
Greg Clayton via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Mon Nov 5 07:11:26 PST 2018
clayborg added a comment.
Just a few nits, but _very_ close.
================
Comment at: source/Plugins/SymbolFile/DWARF/DWARFDebugInfo.h:65
typedef std::vector<DWARFUnitSP> CompileUnitColl;
+ typedef std::unordered_map<uint64_t, uint32_t> TypeSignatureMap;
----------------
Use llvm::DenseMap here?
================
Comment at: source/Plugins/SymbolFile/DWARF/DWARFUnit.cpp:797
+DWARFCompileUnit *DWARFUnit::GetAsCompileUnit() {
+ if (GetUnitDIEOnly().Tag() == DW_TAG_compile_unit)
+ return static_cast<DWARFCompileUnit *>(this);
----------------
Should this just be "if (GetUnitDIEOnly().Tag() != DW_TAG_type_unit)"? Partial units and many others can be top level DIEs.
Repository:
rLLDB LLDB
https://reviews.llvm.org/D51578
More information about the lldb-commits
mailing list