[clang] [llvm] Add support for Windows hot-patching (PR #138972)
Alexandre Ganea via cfe-commits
cfe-commits at lists.llvm.org
Tue May 13 09:46:33 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
----------------
aganea wrote:
If you wish, you could also you `split-file` before this line to keep the test self-contained. See https://llvm.org/docs/TestingGuide.html#extra-files
https://github.com/llvm/llvm-project/pull/138972
More information about the cfe-commits
mailing list