[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
Tue Feb 4 16:39:26 PST 2025


================
@@ -561,6 +564,16 @@ class CodeGenOptions : public CodeGenOptionsBase {
   /// Reset all of the options that are not considered when building a
   /// module.
   void resetNonModularOptions(StringRef ModuleFormat);
+
+  // Is the given function name one of the functions that can be replaced by the
+  // loader?
+  bool isLoaderReplaceableFunctionName(StringRef FuncName) const {
+    return std::any_of(LoaderReplaceableFunctionNames.begin(),
----------------
efriedma-quic wrote:

llvm::is_contained

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


More information about the llvm-commits mailing list