22 return cast_or_null<DILocation>(Loc.
get());
26 assert(
get() &&
"Expected valid DebugLoc");
31 assert(
get() &&
"Expected valid DebugLoc");
32 return get()->getColumn();
36 assert(
get() &&
"Expected valid DebugLoc");
41 assert(
get() &&
"Expected valid DebugLoc");
65 const_cast<MDNode *
>(Scope),
66 const_cast<MDNode *>(InlinedAt));
90 auto *Scope = cast<DIScope>(
getScope());
91 OS << Scope->getFilename();
98 InlinedAtDL.print(OS);
MDNode * getScope() const
#define LLVM_DUMP_METHOD
Mark debug helper function definitions like dump() that should not be stripped from debug builds...
DebugLoc getFnDebugLoc() const
Find the debug info location for the start of the function.
DILocation * get() const
Get the underlying DILocation.
DISubprogram * getDISubprogram(const MDNode *Scope)
Find subprogram that is enclosing this scope.
void print(raw_ostream &OS) const
prints source location /path/to/file.exe:line:col @[inlined at]
MDNode * getInlinedAtScope() const
Get the fully inlined-at scope for a DebugLoc.
DILocation * getInlinedAt() const
raw_ostream & dbgs()
dbgs() - This returns a reference to a raw_ostream for debugging messages.
static MDTuple * get(LLVMContext &Context, ArrayRef< Metadata * > MDs)
LLVMContext & getContext() const
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
This class implements an extremely fast bulk output stream that can only output to a stream...