[clang] [llvm] Add support for Windows hot-patching (PR #138972)
via cfe-commits
cfe-commits at lists.llvm.org
Tue May 13 11:09:27 PDT 2025
================
@@ -0,0 +1,18 @@
+// This verifies that hotpatch function attributes are correctly propagated through LLVM IR when compiling with LTO.
+//
+// RUN: %clang_cl -c --target=x86_64-windows-msvc -O2 /Z7 -fms-hotpatch-functions-file=%S/ms-hotpatch-functions.txt -flto /Fo%t.bc %s
----------------
sivadeilra wrote:
Good to know. I've changed this to a single `echo`, which I think is simpler than using `split-file`. If it gets any more complicated than that, I'll use `split-file`.
https://github.com/llvm/llvm-project/pull/138972
More information about the cfe-commits
mailing list