[llvm] [BOLT] Add --clone-at-origin option (PR #181003)

Maksim Panchenko via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 11 19:19:22 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);
+  }
----------------
maksfb wrote:

Thanks for spotting. Somehow my patch didn't apply correctly.

https://github.com/llvm/llvm-project/pull/181003


More information about the llvm-commits mailing list