19 return cast_or_null<Function>(Ctx.getValue(LLVMF));
23 bool AllowInternal)
const {
24 return cast_or_null<GlobalVariable>(
25 Ctx.getValue(LLVMM.getGlobalVariable(
Name, AllowInternal)));
29 return cast_or_null<GlobalAlias>(Ctx.getValue(LLVMM.getNamedAlias(
Name)));
33 return cast_or_null<GlobalIFunc>(Ctx.getValue(LLVMM.getNamedIFunc(
Name)));
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.