LLVM 22.0.0git
EHContGuardTargets.cpp File Reference

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...

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

Detailed Description

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.

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "ehcontguard-catchret"

Definition at line 28 of file EHContGuardTargets.cpp.

Function Documentation

◆ INITIALIZE_PASS()

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()

STATISTIC ( EHContGuardTargetsFound ,
"Number of EHCont Guard targets"  )