diff --git a/bolt/include/bolt/Core/BinaryFunction.h b/bolt/include/bolt/Core/BinaryFunction.h index 942840a7621fd..c9ccb69ab52c1 100644 --- a/bolt/include/bolt/Core/BinaryFunction.h +++ b/bolt/include/bolt/Core/BinaryFunction.h @@ -343,9 +343,6 @@ class BinaryFunction { /// 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 @@ class BinaryFunction { /// 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 @@ class BinaryFunction { /// Mark function that should not be emitted. void setIgnored(); - void setIsPatched(bool V) { IsPatched = V; } - void setHasIndirectTargetToSplitFragment(bool V) { HasIndirectTargetToSplitFragment = V; } diff --git a/bolt/lib/Passes/PatchEntries.cpp b/bolt/lib/Passes/PatchEntries.cpp index a647dc16820ee..4ce9c09b311df 100644 --- a/bolt/lib/Passes/PatchEntries.cpp +++ b/bolt/lib/Passes/PatchEntries.cpp @@ -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(); }