Lines Matching defs:CFGuard
1 //===-- CFGuard.cpp - Control Flow Guard checks -----------------*- C++ -*-===//
15 #include "llvm/Transforms/CFGuard.h"
155 class CFGuard : public FunctionPass {
162 CFGuard(CFGuardImpl::Mechanism M) : FunctionPass(ID), Impl(M) {
191 // Create new call instruction. The CFGuard check should always be a call,
242 // Skip modules for which CFGuard checks have been disabled.
265 // Skip modules for which CFGuard checks have been disabled.
311 char CFGuard::ID = 0;
312 INITIALIZE_PASS(CFGuard, "CFGuard", "CFGuard", false, false)
315 return new CFGuard(CFGuardPass::Mechanism::Check);
319 return new CFGuard(CFGuardPass::Mechanism::Dispatch);