================
@@ -246,6 +246,9 @@ llvm::StringRef
SymbolFileDWARFDebugMap::GetPluginDescriptionStatic() {
}
SymbolFile *SymbolFileDWARFDebugMap::CreateInstance(ObjectFileSP objfile_sp) {
+ // Don't create a debug map if the object file isn't a Mach-O.
+ if (!objfile_sp->GetArchitecture().GetTriple().isAppleMachO())
----------------
royitaqi wrote:
I think it makes sense to assert to make the requirement very clear. Added in
latest commit. Thanks for the suggestion~!
--
Also fixed the comment in the test.
https://github.com/llvm/llvm-project/pull/139170
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits