mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-02 07:32:52 +00:00
Add an assert here in case parsing gave us a NULL compile unit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162498 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cbbd5b1d86
commit
fa76f22865
@ -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
Block a user