Skip to content

Commit 7730093

Browse files
committed
Revert "[lldb] Don't create instance of SymbolFileDWARFDebugMap for non-Mach-O files (#139170)"
This reverts commit 3096f87. Reverting this commit because it depends on another PR that was reverted, #142704 Both can be reapplied once we find a correct fix for that.
1 parent 76c4ba6 commit 7730093

File tree

3 files changed

+0
-159
lines changed

3 files changed

+0
-159
lines changed

lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -246,10 +246,6 @@ llvm::StringRef SymbolFileDWARFDebugMap::GetPluginDescriptionStatic() {
246246
}
247247

248248
SymbolFile *SymbolFileDWARFDebugMap::CreateInstance(ObjectFileSP objfile_sp) {
249-
assert(objfile_sp);
250-
// Don't create a debug map if the object file isn't a Mach-O.
251-
if (!objfile_sp->GetArchitecture().GetTriple().isAppleMachO())
252-
return nullptr;
253249
return new SymbolFileDWARFDebugMap(std::move(objfile_sp));
254250
}
255251

lldb/unittests/SymbolFile/DWARF/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ add_lldb_unittest(SymbolFileDWARFTests
44
DWARFDIETest.cpp
55
DWARFIndexCachingTest.cpp
66
DWARFUnitTest.cpp
7-
SymbolFileDWARFDebugMapTests.cpp
87
SymbolFileDWARFTests.cpp
98
XcodeSDKModuleTests.cpp
109

lldb/unittests/SymbolFile/DWARF/SymbolFileDWARFDebugMapTests.cpp

Lines changed: 0 additions & 154 deletions
This file was deleted.

0 commit comments

Comments
 (0)