LLVM: lib/SandboxIR/Module.cpp Source File (original) (raw)
1
2
3
4
5
6
7
8
14
16
19 return cast_or_null(Ctx.getValue(LLVMF));
20}
21
23 bool AllowInternal) const {
24 return cast_or_null(
25 Ctx.getValue(LLVMM.getGlobalVariable(Name, AllowInternal)));
26}
27
29 return cast_or_null(Ctx.getValue(LLVMM.getNamedAlias(Name)));
30}
31
33 return cast_or_null(Ctx.getValue(LLVMM.getNamedIFunc(Name)));
34}
35
36#ifndef NDEBUG
38
40 dumpOS(dbgs());
41 dbgs() << "\n";
42}
43#endif
const Function & getFunction() const
Function * getFunction(StringRef Name) const
Look up the specified function in the module symbol table.
void dump() const
Dump the module to stderr (for debugging).
GlobalIFunc * getNamedIFunc(StringRef Name) const
Return the global ifunc in the module with the specified name, of arbitrary type.
GlobalVariable * getGlobalVariable(StringRef Name) const
Look up the specified global variable in the module symbol table.
GlobalAlias * getNamedAlias(StringRef Name) const
Return the global alias in the module with the specified name, of arbitrary type.
StringRef - Represent a constant reference to a string, i.e.
This class implements an extremely fast bulk output stream that can only output to a stream.
void dumpOS(raw_ostream &OS) const
raw_ostream & dbgs()
dbgs() - This returns a reference to a raw_ostream for debugging messages.