Thanks to visit codestin.com
Credit goes to llvm.org

LLVM 22.0.0git
WindowsSecureHotPatching.cpp File Reference

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "windows-secure-hot-patch"

Functions

 INITIALIZE_PASS (WindowsSecureHotPatching, "windows-secure-hot-patch", "Mark functions for Windows hot patch support", false, false) ModulePass *llvm
static bool TypeContainsPointers (Type *ty)
static bool globalVariableNeedsRedirect (GlobalVariable *GV)
static GlobalVariablegetOrCreateRefVariable (Function &F, SmallDenseMap< GlobalVariable *, GlobalVariable * > &RefMapping, GlobalVariable *GV)
static ValuerewriteGlobalVariablesInConstant (Constant *C, SmallDenseMap< GlobalVariable *, Value * > &GVLoadMap, IRBuilder<> &IRBuilderAtEntry)
static bool searchConstantExprForGlobalVariables (Value *V, SmallDenseMap< GlobalVariable *, Value * > &GVLoadMap, SmallVector< GlobalVariableUse > &GVUses)

Variables

static cl::opt< std::stringLLVMMSSecureHotPatchFunctionsFile ("ms-secure-hotpatch-functions-file", cl::value_desc("filename"), cl::desc("A file containing list of mangled function names to mark for " "Windows Secure Hot-Patching"))
static cl::list< std::stringLLVMMSSecureHotPatchFunctionsList ("ms-secure-hotpatch-functions-list", cl::value_desc("list"), cl::desc("A list of mangled function names to mark for Windows Secure " "Hot-Patching"), cl::CommaSeparated)

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "windows-secure-hot-patch"

Definition at line 153 of file WindowsSecureHotPatching.cpp.

Function Documentation

◆ getOrCreateRefVariable()

◆ globalVariableNeedsRedirect()

◆ INITIALIZE_PASS()

INITIALIZE_PASS ( WindowsSecureHotPatching ,
"windows-secure-hot-patch" ,
"Mark functions for Windows hot patch support" ,
false ,
false  )

◆ rewriteGlobalVariablesInConstant()

◆ searchConstantExprForGlobalVariables()

bool searchConstantExprForGlobalVariables ( Value * V,
SmallDenseMap< GlobalVariable *, Value * > & GVLoadMap,
SmallVector< GlobalVariableUse > & GVUses )
static

◆ TypeContainsPointers()

Variable Documentation

◆ LLVMMSSecureHotPatchFunctionsFile

cl::opt< std::string > LLVMMSSecureHotPatchFunctionsFile("ms-secure-hotpatch-functions-file", cl::value_desc("filename"), cl::desc("A file containing list of mangled function names to mark for " "Windows Secure Hot-Patching")) ( "ms-secure-hotpatch-functions-file" ,
cl::value_desc("filename") ,
cl::desc("A file containing list of mangled function names to mark for " "Windows Secure Hot-Patching")  )
static

◆ LLVMMSSecureHotPatchFunctionsList

cl::list< std::string > LLVMMSSecureHotPatchFunctionsList("ms-secure-hotpatch-functions-list", cl::value_desc("list"), cl::desc("A list of mangled function names to mark for Windows Secure " "Hot-Patching"), cl::CommaSeparated) ( "ms-secure-hotpatch-functions-list" ,
cl::value_desc("list") ,
cl::desc("A list of mangled function names to mark for Windows Secure " "Hot-Patching") ,
cl::CommaSeparated  )
static