Remove set but not used variables from the debug info verifier code.

llvm-svn: 307987
This commit is contained in:
Eric Christopher 2017-07-14 01:40:47 +00:00
parent 9747a7c562
commit f73870eefa
1 changed files with 1 additions and 6 deletions

View File

@ -31,8 +31,6 @@ bool DWARFVerifier::verifyUnitHeader(const DWARFDataExtractor DebugInfoData,
uint8_t AddrSize = 0, UnitType = 0;
uint16_t Version;
bool Success = true;
uint32_t HeaderSize =
11; // means that we have only compile units in .debug_info
bool ValidLength = false;
bool ValidVersion = false;
@ -56,8 +54,6 @@ bool DWARFVerifier::verifyUnitHeader(const DWARFDataExtractor DebugInfoData,
AddrSize = DebugInfoData.getU8(Offset);
AbbrOffset = DebugInfoData.getU32(Offset);
ValidType = DWARFUnit::isValidUnitType(UnitType);
if (ValidType)
HeaderSize = DWARFUnit::getDWARF5HeaderSize(UnitType);
} else {
AbbrOffset = DebugInfoData.getU32(Offset);
AddrSize = DebugInfoData.getU8(Offset);
@ -95,12 +91,11 @@ bool DWARFVerifier::handleDebugInfoUnitHeaderChain() {
DWARFDataExtractor DebugInfoData(DCtx.getInfoSection(), DCtx.isLittleEndian(),
0);
uint32_t OffsetStart, Offset = 0, UnitIdx = 0;
uint32_t Offset = 0, UnitIdx = 0;
bool isUnitDWARF64 = false;
bool Success = true;
bool hasDIE = DebugInfoData.isValidOffset(Offset);
while (hasDIE) {
OffsetStart = Offset;
if (!verifyUnitHeader(DebugInfoData, &Offset, UnitIdx, isUnitDWARF64)) {
Success = false;
if (isUnitDWARF64)