mirror of
https://github.com/intel/llvm.git
synced 2026-01-28 01:04:49 +08:00
Darwin has a debug info format that stores module types in stand alone files and it uses some of the DWO attributes. Don't assert in SymbolFileDWARFDwo, just return null so everything works.
llvm-svn: 247638
This commit is contained in:
@@ -69,8 +69,11 @@ SymbolFileDWARFDwo::ParseCompileUnit(DWARFCompileUnit* dwarf_cu, uint32_t cu_idx
|
||||
DWARFCompileUnit*
|
||||
SymbolFileDWARFDwo::GetCompileUnit()
|
||||
{
|
||||
assert(GetNumCompileUnits() == 1 && "Only dwo files with 1 compile unit is supported");
|
||||
return DebugInfo()->GetCompileUnitAtIndex(0);
|
||||
// Only dwo files with 1 compile unit is supported
|
||||
if (GetNumCompileUnits() == 1)
|
||||
return DebugInfo()->GetCompileUnitAtIndex(0);
|
||||
else
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
DWARFCompileUnit*
|
||||
|
||||
Reference in New Issue
Block a user