Skip to content

Commit 6a161cb

Browse files
authored
[BOLT] Remove BinaryFunction::IsPatched. NFC (#129461)
BinaryFunction::IsPatched is no longer used.
1 parent 59138a6 commit 6a161cb

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

bolt/include/bolt/Core/BinaryFunction.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -343,9 +343,6 @@ class BinaryFunction {
343343
/// True if the function uses ORC format for stack unwinding.
344344
bool HasORC{false};
345345

346-
/// True if the original entry point was patched.
347-
bool IsPatched{false};
348-
349346
/// True if the function contains explicit or implicit indirect branch to its
350347
/// split fragments, e.g., split jump table, landing pad in split fragment
351348
bool HasIndirectTargetToSplitFragment{false};
@@ -1376,9 +1373,6 @@ class BinaryFunction {
13761373
/// Return true if the function uses ORC format for stack unwinding.
13771374
bool hasORC() const { return HasORC; }
13781375

1379-
/// Return true if the original entry point was patched.
1380-
bool isPatched() const { return IsPatched; }
1381-
13821376
const JumpTable *getJumpTable(const MCInst &Inst) const {
13831377
const uint64_t Address = BC.MIB->getJumpTable(Inst);
13841378
return getJumpTableContainingAddress(Address);
@@ -1729,8 +1723,6 @@ class BinaryFunction {
17291723
/// Mark function that should not be emitted.
17301724
void setIgnored();
17311725

1732-
void setIsPatched(bool V) { IsPatched = V; }
1733-
17341726
void setHasIndirectTargetToSplitFragment(bool V) {
17351727
HasIndirectTargetToSplitFragment = V;
17361728
}

bolt/lib/Passes/PatchEntries.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,6 @@ Error PatchEntries::runOnFunctions(BinaryContext &BC) {
130130
assert(!ColdSize && "unexpected cold code");
131131
assert(HotSize <= PatchSize && "max patch size exceeded");
132132
}
133-
134-
Function.setIsPatched(true);
135133
}
136134
return Error::success();
137135
}

0 commit comments

Comments
 (0)