git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252845
91177308-0d34-0410-b5e6-
96231b3b80d8
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) {
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) {