51 while (!
Users.empty()) {
53 for (
const Use &U : FnOrCast->
uses()) {
54 const User *FnUser = U.getUser();
55 if (isa<BlockAddress>(FnUser))
57 if (
const auto *Call = dyn_cast<CallBase>(FnUser)) {
58 if (!Call->isCallee(&U))
60 }
else if (isa<Instruction>(FnUser)) {
65 }
else if (
const auto *
C = dyn_cast<Constant>(FnUser)) {
72 Users.push_back(FnUser);
83 std::vector<const Function *> Functions;
86 Functions.push_back(&
F);
87 if (Functions.empty() && LongjmpTargets.empty())
96 for (
const MCSymbol *S : LongjmpTargets) {
97 OS.EmitCOFFSymbolIndex(S);
iterator_range< use_iterator > uses()
std::unique_ptr< MCStreamer > OutStreamer
This is the MCStreamer object for the file we are generating.
This class represents lattice values for constants.
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
A Module instance is used to store all the information related to an LLVM module. ...
MCContext & OutContext
This is the context for the output file that we are streaming.
Collects and handles AsmPrinter objects required to build debug or EH information.
iv Induction Variable Users
void endFunction(const MachineFunction *MF) override
Gather post-function debug information.
static bool isPossibleIndirectCallTarget(const Function *F)
Returns true if this function's address is escaped in a way that might make it an indirect call targe...
void endModule() override
Emit the Control Flow Guard function ID table.
A Use represents the edge between a Value definition and its users.
MCSection * getGFIDsSection() const
MachineModuleInfo * MMI
This is a pointer to the current MachineModuleInfo.
This file contains the declarations for the subclasses of Constant, which represent the different fla...
This class is intended to be used as a driving class for all asm writers.
const MCObjectFileInfo * getObjectFileInfo() const
const Value * stripPointerCasts() const
Strip off pointer casts, all-zero GEPs and address space casts.
MCSection * getGLJMPSection() const
MCSymbol * getSymbol(const GlobalValue *GV) const
const std::vector< MCSymbol * > & getLongjmpTargets() const
Returns a reference to a list of symbols immediately following calls to _setjmp in the function...
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small...
WinCFGuard(AsmPrinter *A)
const Module * getModule() const
LLVM Value Representation.