[clang] [llvm] [aarch64][x86][win] Add compiler support for MSVC's /funcoverride flag (Windows kernel loader replaceable functions) (PR #125320)

Eli Friedman via llvm-commits llvm-commits at lists.llvm.org
Wed May 7 14:51:33 PDT 2025


================
@@ -7613,6 +7613,9 @@ def import_call_optimization : Flag<["-"], "import-call-optimization">,
              "by the Windows kernel to enable import call optimization">,
     MarshallingInfoFlag<CodeGenOpts<"ImportCallOptimization">>;
 
+def replaceable_function: Joined<["-"], "loader-replaceable-function=">,
+  MarshallingInfoStringVector<CodeGenOpts<"LoaderReplaceableFunctionNames">>;
----------------
efriedma-quic wrote:

We could also add a clang driver option... but maybe not really necessary given the expected usage.

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


More information about the llvm-commits mailing list