aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorsten Schütt <schuett@gmail.com>2022-08-06 20:51:40 +0200
committerThorsten Schütt <schuett@gmail.com>2022-08-06 20:52:45 +0200
commit0c9258612b67153e6760a330eb4cba1233e665b1 (patch)
treeeb93571419f1e866c0d0b781bffd8549701cdc3c
parentede96de751224487aea122af8bfb4e82bc54840b (diff)
[bolt] silence unused variables warnings
-rw-r--r--bolt/lib/Core/BinaryContext.cpp2
-rw-r--r--bolt/lib/Core/Exceptions.cpp1
2 files changed, 3 insertions, 0 deletions
diff --git a/bolt/lib/Core/BinaryContext.cpp b/bolt/lib/Core/BinaryContext.cpp
index ae804ac64fa3..b2bc7772f674 100644
--- a/bolt/lib/Core/BinaryContext.cpp
+++ b/bolt/lib/Core/BinaryContext.cpp
@@ -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;
diff --git a/bolt/lib/Core/Exceptions.cpp b/bolt/lib/Core/Exceptions.cpp
index 79404ca8734e..ecb8afcc0cb4 100644
--- a/bolt/lib/Core/Exceptions.cpp
+++ b/bolt/lib/Core/Exceptions.cpp
@@ -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");