forked from OSchip/llvm-project
Add an assert here in case parsing gave us a NULL compile unit.
llvm-svn: 162498
This commit is contained in:
parent
060b163801
commit
9142ea7bec
|
@ -94,7 +94,9 @@ void DWARFCompileUnit::dump(raw_ostream &OS) {
|
||||||
<< " (next CU at " << format("0x%08x", getNextCompileUnitOffset())
|
<< " (next CU at " << format("0x%08x", getNextCompileUnitOffset())
|
||||||
<< ")\n";
|
<< ")\n";
|
||||||
|
|
||||||
getCompileUnitDIE(false)->dump(OS, this, -1U);
|
const DWARFDebugInfoEntryMinimal *CU = getCompileUnitDIE(false);
|
||||||
|
assert(CU && "Null Compile Unit?");
|
||||||
|
CU->dump(OS, this, -1U);
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *DWARFCompileUnit::getCompilationDir() {
|
const char *DWARFCompileUnit::getCompilationDir() {
|
||||||
|
|
Loading…
Reference in New Issue