================ @@ -191,20 +193,36 @@ void ObjectFileXCOFF::ParseSymtab(Symtab &lldb_symtab) {} bool ObjectFileXCOFF::IsStripped() { return false; } void ObjectFileXCOFF::CreateSections(SectionList &unified_section_list) { + if (m_sections_up) return; m_sections_up = std::make_unique<SectionList>(); - ModuleSP module_sp(GetModule()); + if (m_binary->is64Bit()) + CreateSectionsWithBitness<XCOFF64>(unified_section_list); + else + CreateSectionsWithBitness<XCOFF32>(unified_section_list); +} +template <typename T> auto GetSections(llvm::object::XCOFFObjectFile *binary) { ---------------- labath wrote:
```suggestion template <typename T> static auto GetSections(llvm::object::XCOFFObjectFile *binary) { ``` https://github.com/llvm/llvm-project/pull/139875 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits