1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

dwarfdump: Add error checking to fix the buildbots/correctness

llvm-svn: 252845
This commit is contained in:
David Blaikie 2015-11-12 01:57:33 +00:00
parent d204740e82
commit 58bed1b8ac

View File

@ -161,8 +161,8 @@ void DWARFContext::dump(raw_ostream &OS, DIDumpType DumpType) {
DataExtractor CUIndexData(getCUIndexSection(), isLittleEndian(),
savedAddressByteSize);
DWARFUnitIndex CUIndex;
CUIndex.parse(CUIndexData);
CUIndex.dump(OS);
if (CUIndex.parse(CUIndexData))
CUIndex.dump(OS);
}
if (DumpType == DIDT_All || DumpType == DIDT_TUIndex) {
@ -170,8 +170,8 @@ void DWARFContext::dump(raw_ostream &OS, DIDumpType DumpType) {
DataExtractor TUIndexData(getTUIndexSection(), isLittleEndian(),
savedAddressByteSize);
DWARFUnitIndex TUIndex;
TUIndex.parse(TUIndexData);
TUIndex.dump(OS);
if (TUIndex.parse(TUIndexData))
TUIndex.dump(OS);
}
if (DumpType == DIDT_All || DumpType == DIDT_LineDwo) {