• Home
  • Raw
  • Download

Lines Matching full:debugloc

1 //===-- DebugLoc.cpp - Implement DebugLoc class ---------------------------===//
9 #include "llvm/IR/DebugLoc.h"
16 // DebugLoc Implementation
18 DebugLoc::DebugLoc(const DILocation *L) : Loc(const_cast<DILocation *>(L)) {} in DebugLoc() function in DebugLoc
19 DebugLoc::DebugLoc(const MDNode *L) : Loc(const_cast<MDNode *>(L)) {} in DebugLoc() function in DebugLoc
21 DILocation *DebugLoc::get() const { in get()
25 unsigned DebugLoc::getLine() const { in getLine()
26 assert(get() && "Expected valid DebugLoc"); in getLine()
30 unsigned DebugLoc::getCol() const { in getCol()
31 assert(get() && "Expected valid DebugLoc"); in getCol()
35 MDNode *DebugLoc::getScope() const { in getScope()
36 assert(get() && "Expected valid DebugLoc"); in getScope()
40 DILocation *DebugLoc::getInlinedAt() const { in getInlinedAt()
41 assert(get() && "Expected valid DebugLoc"); in getInlinedAt()
45 MDNode *DebugLoc::getInlinedAtScope() const { in getInlinedAtScope()
49 DebugLoc DebugLoc::getFnDebugLoc() const { in getFnDebugLoc()
53 return DebugLoc::get(SP->getScopeLine(), 0, SP); in getFnDebugLoc()
55 return DebugLoc(); in getFnDebugLoc()
58 bool DebugLoc::isImplicitCode() const { in isImplicitCode()
65 void DebugLoc::setImplicitCode(bool ImplicitCode) { in setImplicitCode()
71 DebugLoc DebugLoc::get(unsigned Line, unsigned Col, const MDNode *Scope, in get()
75 return DebugLoc(); in get()
82 DebugLoc DebugLoc::appendInlinedAt(const DebugLoc &DL, DILocation *InlinedAt, in appendInlinedAt()
115 LLVM_DUMP_METHOD void DebugLoc::dump() const { print(dbgs()); } in dump()
118 void DebugLoc::print(raw_ostream &OS) const { in print()
129 if (DebugLoc InlinedAtDL = getInlinedAt()) { in print()