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

Eli Friedman via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 4 16:39:25 PST 2025


================
@@ -0,0 +1,14 @@
+// RUN: %clang_cc1 -loader-replaceable-function=override_me -emit-llvm -std=c11 -o - %s | FileCheck %s
+
+// CHECK: define dso_local void @override_me() #0
+void override_me() {}
+
+// CHECK: define dso_local void @dont_override_me() #1
+void dont_override_me() {}
----------------
efriedma-quic wrote:

Please add a C++ testcase showing the interaction with mangling

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


More information about the cfe-commits mailing list