[Lldb-commits] [PATCH] D46889: [DWARF] Extract indexing code into a separate class hierarchy

Greg Clayton via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu May 17 07:12:39 PDT 2018


clayborg added a comment.

Looks fine. Just one question on keeping the DWARFIndex::Create() functions so they all have the same signature.



================
Comment at: source/Plugins/SymbolFile/DWARF/DWARFIndex.cpp:40
+
+std::unique_ptr<AppleIndex> AppleIndex::Create(
+    Module &module, DWARFDataExtractor apple_names,
----------------
Move all AppleIndex stuff to a dedicated .cpp file?


================
Comment at: source/Plugins/SymbolFile/DWARF/DWARFIndex.cpp:321
+
+void ManualIndex::Index() {
+  if (!m_debug_info)
----------------
Move all ManualIndex stuff to a dedicated .cpp file?


================
Comment at: source/Plugins/SymbolFile/DWARF/DWARFIndex.h:71
+
+class AppleIndex : public DWARFIndex {
+public:
----------------
Rename to AppleDWARFIndex and move to AppleDWARFIndex.h?


================
Comment at: source/Plugins/SymbolFile/DWARF/DWARFIndex.h:127
+
+class ManualIndex : public DWARFIndex {
+public:
----------------
Rename to ManualDWARFIndex and move to ManualDWARFIndex.h?


https://reviews.llvm.org/D46889





More information about the lldb-commits mailing list