[BOLT] Remove BinaryFunction::IsPatched. NFC (#129461)
BinaryFunction::IsPatched is no longer used.
This commit is contained in:
@@ -343,9 +343,6 @@ private:
|
||||
/// True if the function uses ORC format for stack unwinding.
|
||||
bool HasORC{false};
|
||||
|
||||
/// True if the original entry point was patched.
|
||||
bool IsPatched{false};
|
||||
|
||||
/// True if the function contains explicit or implicit indirect branch to its
|
||||
/// split fragments, e.g., split jump table, landing pad in split fragment
|
||||
bool HasIndirectTargetToSplitFragment{false};
|
||||
@@ -1376,9 +1373,6 @@ public:
|
||||
/// Return true if the function uses ORC format for stack unwinding.
|
||||
bool hasORC() const { return HasORC; }
|
||||
|
||||
/// Return true if the original entry point was patched.
|
||||
bool isPatched() const { return IsPatched; }
|
||||
|
||||
const JumpTable *getJumpTable(const MCInst &Inst) const {
|
||||
const uint64_t Address = BC.MIB->getJumpTable(Inst);
|
||||
return getJumpTableContainingAddress(Address);
|
||||
@@ -1729,8 +1723,6 @@ public:
|
||||
/// Mark function that should not be emitted.
|
||||
void setIgnored();
|
||||
|
||||
void setIsPatched(bool V) { IsPatched = V; }
|
||||
|
||||
void setHasIndirectTargetToSplitFragment(bool V) {
|
||||
HasIndirectTargetToSplitFragment = V;
|
||||
}
|
||||
|
||||
@@ -130,8 +130,6 @@ Error PatchEntries::runOnFunctions(BinaryContext &BC) {
|
||||
assert(!ColdSize && "unexpected cold code");
|
||||
assert(HotSize <= PatchSize && "max patch size exceeded");
|
||||
}
|
||||
|
||||
Function.setIsPatched(true);
|
||||
}
|
||||
return Error::success();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user