Lines Matching defs:DebugLoc

1 //===---- llvm/Support/DebugLoc.h - Debug Location Information --*- C++ -*-===//
23 /// DebugLoc - Debug location id. This is carried by Instruction, SDNode,
26 class DebugLoc {
27 friend struct DenseMapInfo<DebugLoc>;
30 /// not equal to the tombstone key or DebugLoc().
31 static DebugLoc getEmptyKey() {
32 DebugLoc DL;
38 /// is not equal to the empty key or DebugLoc().
39 static DebugLoc getTombstoneKey() {
40 DebugLoc DL;
54 DebugLoc() : LineCol(0), ScopeIdx(0) {} // Defaults to unknown.
56 /// get - Get a new DebugLoc that corresponds to the specified line/col
58 static DebugLoc get(unsigned Line, unsigned Col,
61 /// getFromDILocation - Translate the DILocation quad into a DebugLoc.
62 static DebugLoc getFromDILocation(MDNode *N);
64 /// getFromDILexicalBlock - Translate the DILexicalBlock into a DebugLoc.
65 static DebugLoc getFromDILexicalBlock(MDNode *N);
78 /// getScope - This returns the scope pointer for this DebugLoc, or null if
82 /// getInlinedAt - This returns the InlinedAt pointer for this DebugLoc, or
91 /// getAsMDNode - This method converts the compressed DebugLoc node into a
95 bool operator==(const DebugLoc &DL) const {
98 bool operator!=(const DebugLoc &DL) const { return !(*this == DL); }
104 struct DenseMapInfo<DebugLoc> {
105 static DebugLoc getEmptyKey() { return DebugLoc::getEmptyKey(); }
106 static DebugLoc getTombstoneKey() { return DebugLoc::getTombstoneKey(); }
107 static unsigned getHashValue(const DebugLoc &Key);
108 static bool isEqual(DebugLoc LHS, DebugLoc RHS) { return LHS == RHS; }