diff options
| author | Eric Christopher <echristo@gmail.com> | 2017-07-14 01:40:47 +0000 |
|---|---|---|
| committer | Eric Christopher <echristo@gmail.com> | 2017-07-14 01:40:47 +0000 |
| commit | f73870eefa19c9e0e2054c8966853b7d56764934 (patch) | |
| tree | 71e76338b89a79bfe2254abd9c43e0cefd2c86e8 | |
| parent | 9747a7c5622c42a88d868ee0220cdef8ed387781 (diff) | |
| download | bcm5719-llvm-f73870eefa19c9e0e2054c8966853b7d56764934.tar.gz bcm5719-llvm-f73870eefa19c9e0e2054c8966853b7d56764934.zip | |
Remove set but not used variables from the debug info verifier code.
llvm-svn: 307987
| -rw-r--r-- | llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp b/llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp index 8a90b23fa93..896b95dd27d 100644 --- a/llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp +++ b/llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp @@ -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) |

