LLVM 22.0.0git
|
This file contains a machine function pass to insert a symbol before each valid target where the unwinder in Windows may continue exectution after an exception is thrown and store this in the MachineFunction's EHContTargets vector. More...
#include "llvm/ADT/Statistic.h"
#include "llvm/CodeGen/MachineBasicBlock.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/CodeGen/MachineModuleInfo.h"
#include "llvm/CodeGen/Passes.h"
#include "llvm/IR/Module.h"
#include "llvm/InitializePasses.h"
Go to the source code of this file.
Macros | |
#define | DEBUG_TYPE "ehcontguard-catchret" |
Functions | |
STATISTIC (EHContGuardTargetsFound, "Number of EHCont Guard targets") | |
INITIALIZE_PASS (EHContGuardTargets, "EHContGuardTargets", "Insert symbols at valid targets for /guard:ehcont", false, false) FunctionPass *llvm |
This file contains a machine function pass to insert a symbol before each valid target where the unwinder in Windows may continue exectution after an exception is thrown and store this in the MachineFunction's EHContTargets vector.
This will be used to emit the table of valid targets used by Windows EH Continuation Guard.
Definition in file EHContGuardTargets.cpp.
#define DEBUG_TYPE "ehcontguard-catchret" |
Definition at line 28 of file EHContGuardTargets.cpp.
INITIALIZE_PASS | ( | EHContGuardTargets | , |
"EHContGuardTargets" | , | ||
"Insert symbols at valid targets for /guard:ehcont" | , | ||
false | , | ||
false | ) |
Definition at line 55 of file EHContGuardTargets.cpp.
References llvm::createEHContGuardTargetsPass().
STATISTIC | ( | EHContGuardTargetsFound | , |
"Number of EHCont Guard targets" | ) |
References llvm::PassRegistry::getPassRegistry().