Lines Matching full:debugloc
1 //===-- DebugLoc.cpp - Implement DebugLoc class ---------------------------===//
9 #include "llvm/IR/DebugLoc.h"
15 // DebugLoc Implementation
17 DebugLoc::DebugLoc(const DILocation *L) : Loc(const_cast<DILocation *>(L)) {} in DebugLoc() function in DebugLoc
18 DebugLoc::DebugLoc(const MDNode *L) : Loc(const_cast<MDNode *>(L)) {} in DebugLoc() function in DebugLoc
20 DILocation *DebugLoc::get() const { in get()
24 unsigned DebugLoc::getLine() const { in getLine()
25 assert(get() && "Expected valid DebugLoc"); in getLine()
29 unsigned DebugLoc::getCol() const { in getCol()
30 assert(get() && "Expected valid DebugLoc"); in getCol()
34 MDNode *DebugLoc::getScope() const { in getScope()
35 assert(get() && "Expected valid DebugLoc"); in getScope()
39 DILocation *DebugLoc::getInlinedAt() const { in getInlinedAt()
40 assert(get() && "Expected valid DebugLoc"); in getInlinedAt()
44 MDNode *DebugLoc::getInlinedAtScope() const { in getInlinedAtScope()
48 DebugLoc DebugLoc::getFnDebugLoc() const { in getFnDebugLoc()
54 return DebugLoc(); in getFnDebugLoc()
57 bool DebugLoc::isImplicitCode() const { in isImplicitCode()
64 void DebugLoc::setImplicitCode(bool ImplicitCode) { in setImplicitCode()
70 DebugLoc DebugLoc::replaceInlinedAtSubprogram( in replaceInlinedAtSubprogram()
71 const DebugLoc &RootLoc, DISubprogram &NewSP, LLVMContext &Ctx, in replaceInlinedAtSubprogram()
110 DebugLoc DebugLoc::appendInlinedAt(const DebugLoc &DL, DILocation *InlinedAt, in appendInlinedAt()
140 LLVM_DUMP_METHOD void DebugLoc::dump() const { print(dbgs()); } in dump()
143 void DebugLoc::print(raw_ostream &OS) const { in print()
154 if (DebugLoc InlinedAtDL = getInlinedAt()) { in print()