forked from OSchip/llvm-project
[BOLT][NFC] Suppress unused variable warnings
Addresses the warnings emitted by Apple Clang 13.1.6 (Xcode 13.3.1). Tip @tschuett issue #55404. Reviewed By: rafauler Differential Revision: https://reviews.llvm.org/D125733
This commit is contained in:
parent
a7b69dbdd1
commit
c907d6e0e9
|
@ -328,6 +328,7 @@ void BinaryBasicBlock::removePredecessor(BinaryBasicBlock *Pred,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
assert(Erased && "Pred is not a predecessor of this block!");
|
assert(Erased && "Pred is not a predecessor of this block!");
|
||||||
|
(void)Erased;
|
||||||
}
|
}
|
||||||
|
|
||||||
void BinaryBasicBlock::removeDuplicateConditionalSuccessor(MCInst *CondBranch) {
|
void BinaryBasicBlock::removeDuplicateConditionalSuccessor(MCInst *CondBranch) {
|
||||||
|
|
|
@ -809,6 +809,7 @@ BinaryContext::duplicateJumpTable(BinaryFunction &Function, JumpTable *JT,
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
assert(Found && "Label not found");
|
assert(Found && "Label not found");
|
||||||
|
(void)Found;
|
||||||
MCSymbol *NewLabel = Ctx->createNamedTempSymbol("duplicatedJT");
|
MCSymbol *NewLabel = Ctx->createNamedTempSymbol("duplicatedJT");
|
||||||
JumpTable *NewJT =
|
JumpTable *NewJT =
|
||||||
new JumpTable(*NewLabel, JT->getAddress(), JT->EntrySize, JT->Type,
|
new JumpTable(*NewLabel, JT->getAddress(), JT->EntrySize, JT->Type,
|
||||||
|
@ -1172,6 +1173,7 @@ void BinaryContext::postProcessSymbolTable() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
assert(Valid);
|
assert(Valid);
|
||||||
|
(void)Valid;
|
||||||
generateSymbolHashes();
|
generateSymbolHashes();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4048,6 +4048,7 @@ void RewriteInstance::rewriteNoteSections() {
|
||||||
|
|
||||||
if (BSec->getAllocAddress()) {
|
if (BSec->getAllocAddress()) {
|
||||||
assert(!DataWritten && "Writing section twice.");
|
assert(!DataWritten && "Writing section twice.");
|
||||||
|
(void)DataWritten;
|
||||||
SectionData = BSec->getOutputData();
|
SectionData = BSec->getOutputData();
|
||||||
|
|
||||||
LLVM_DEBUG(dbgs() << "BOLT-DEBUG: " << (Size ? "appending" : "writing")
|
LLVM_DEBUG(dbgs() << "BOLT-DEBUG: " << (Size ? "appending" : "writing")
|
||||||
|
|
Loading…
Reference in New Issue