[llvm] [BOLT] Add --clone-at-origin option (PR #181003)
YongKang Zhu via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 11 15:50:24 PST 2026
================
@@ -2284,6 +2284,12 @@ Error RewriteInstance::readSpecialSections() {
}
void RewriteInstance::adjustCommandLineOptions() {
+ if (opts::CloneAtOrigin && opts::ForcePatch) {
+ BC->errs() << "BOLT-ERROR: --clone-at-origin is incompatible with "
+ "--force-patch\n";
+ exit(1);
+ }
----------------
yozhu wrote:
The same check will be done later (on Line 2430).
https://github.com/llvm/llvm-project/pull/181003
More information about the llvm-commits
mailing list