diff options
author | Paschalis Mpeis <paschalis.mpeis@arm.com> | 2025-03-21 15:55:09 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-21 15:55:09 +0000 |
commit | 6bbd45dec7f3aef58accb935c685e802d6972dec (patch) | |
tree | 465e6489410876dc7d9a87189b741400b4feb973 /bolt/lib/Utils/CommandLineOpts.cpp | |
parent | fa4bf3a11a42a098cae63cc81d99b262d34479fb (diff) | |
download | llvm-6bbd45dec7f3aef58accb935c685e802d6972dec.zip llvm-6bbd45dec7f3aef58accb935c685e802d6972dec.tar.gz llvm-6bbd45dec7f3aef58accb935c685e802d6972dec.tar.bz2 |
[NFC][BOLT] Refactor ForcePatch option (#127812)
Move force-patch flag to CommandLineOpts and add details on
PatchEntries.
Diffstat (limited to 'bolt/lib/Utils/CommandLineOpts.cpp')
-rw-r--r-- | bolt/lib/Utils/CommandLineOpts.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bolt/lib/Utils/CommandLineOpts.cpp b/bolt/lib/Utils/CommandLineOpts.cpp index 17f090a..ad71437 100644 --- a/bolt/lib/Utils/CommandLineOpts.cpp +++ b/bolt/lib/Utils/CommandLineOpts.cpp @@ -80,6 +80,12 @@ cl::opt<bool> EqualizeBBCounts( "in non-LBR and shrink wrapping)"), cl::ZeroOrMore, cl::init(false), cl::Hidden, cl::cat(BoltOptCategory)); +llvm::cl::opt<bool> ForcePatch( + "force-patch", + llvm::cl::desc("force patching of original entry points to ensure " + "execution follows only the new/optimized code."), + llvm::cl::Hidden, llvm::cl::cat(BoltCategory)); + cl::opt<bool> RemoveSymtab("remove-symtab", cl::desc("Remove .symtab section"), cl::cat(BoltCategory)); |