forked from OSchip/llvm-project
[bolt] silence unused variables warnings
This commit is contained in:
parent
ede96de751
commit
0c9258612b
|
@ -769,6 +769,7 @@ BinaryContext::getOrCreateJumpTable(BinaryFunction &Function, uint64_t Address,
|
|||
auto isFragmentOf = [](BinaryFunction *Fragment, BinaryFunction *Parent) {
|
||||
return (Fragment->isFragment() && Fragment->isParentFragment(Parent));
|
||||
};
|
||||
(void)isFragmentOf;
|
||||
|
||||
// Two fragments of same function access same jump table
|
||||
if (JumpTable *JT = getJumpTableContainingAddress(Address)) {
|
||||
|
@ -795,6 +796,7 @@ BinaryContext::getOrCreateJumpTable(BinaryFunction &Function, uint64_t Address,
|
|||
}
|
||||
|
||||
bool IsJumpTableParent = false;
|
||||
(void)IsJumpTableParent;
|
||||
for (BinaryFunction *Frag : JT->Parents)
|
||||
if (Frag == &Function)
|
||||
IsJumpTableParent = true;
|
||||
|
|
|
@ -191,6 +191,7 @@ void BinaryFunction::parseLSDA(ArrayRef<uint8_t> LSDASectionData,
|
|||
BinaryFunction *Parent) -> bool {
|
||||
return (Fragment->isFragment() && Fragment->isParentFragment(Parent));
|
||||
};
|
||||
(void)isFragmentOf;
|
||||
assert((isFragmentOf(this, Fragment) || isFragmentOf(Fragment, this)) &&
|
||||
"BOLT-ERROR: cannot have landing pads in different "
|
||||
"functions");
|
||||
|
|
Loading…
Reference in New Issue