[clang] [llvm] Add support for Windows Secure Hot-Patching (PR #138972)
via cfe-commits
cfe-commits at lists.llvm.org
Thu May 15 06:35:00 PDT 2025
================
@@ -501,6 +501,13 @@ class CodeGenOptions : public CodeGenOptionsBase {
/// A list of functions that are replacable by the loader.
std::vector<std::string> LoaderReplaceableFunctionNames;
+ /// The name of a file that contains functions which will be compiled for
+ /// hotpatching. See -fms-secure-hotpatch-functions-file.
+ std::string MSSecureHotPatchFunctionsFile;
+
+ /// A list of functions which will be compiled for hotpatching.
+ /// See -fms-secure-hotpatch-functions-list.
+ std::vector<std::string> MSSecureHotPatchFunctionsList;
----------------
sivadeilra wrote:
I think I'll keep the suffix, since there are two variables and it helps to distinguish them. Fortunately this feature is rarely used and rarely mentioned in the source code, so a long name doesn't really hurt.
https://github.com/llvm/llvm-project/pull/138972
More information about the cfe-commits
mailing list