[JITLink] Fix an unused variable warning.

llvm-svn: 373692
This commit is contained in:
Lang Hames 2019-10-04 05:24:39 +00:00
parent 4a71328f15
commit 6fd9129aaf
1 changed files with 2 additions and 3 deletions

View File

@ -27,12 +27,11 @@ EHFrameBinaryParser::EHFrameBinaryParser(JITTargetAddress EHFrameAddress,
Error EHFrameBinaryParser::addToGraph() { Error EHFrameBinaryParser::addToGraph() {
while (!EHFrameReader.empty()) { while (!EHFrameReader.empty()) {
size_t RecordOffset = EHFrameReader.getOffset(); size_t RecordOffset = EHFrameReader.getOffset();
JITTargetAddress RecordAddress = EHFrameAddress + RecordOffset;
LLVM_DEBUG({ LLVM_DEBUG({
dbgs() << "Processing eh-frame record at " dbgs() << "Processing eh-frame record at "
<< format("0x%016" PRIx64, RecordAddress) << " (offset " << format("0x%016" PRIx64, EHFrameAddress + RecordOffset)
<< RecordOffset << ")\n"; << " (offset " << RecordOffset << ")\n";
}); });
size_t RecordLength = 0; size_t RecordLength = 0;