Lines Matching defs:DebugLoc

1 //===- DebugLoc.h - Debug Location Information ------------------*- C++ -*-===//
26 /// DebugLoc - Debug location id. This is carried by Instruction, SDNode,
29 class DebugLoc {
30 friend struct DenseMapInfo<DebugLoc>;
33 /// not equal to the tombstone key or DebugLoc().
34 static DebugLoc getEmptyKey() {
35 DebugLoc DL;
41 /// is not equal to the empty key or DebugLoc().
42 static DebugLoc getTombstoneKey() {
43 DebugLoc DL;
57 DebugLoc() : LineCol(0), ScopeIdx(0) {} // Defaults to unknown.
59 /// get - Get a new DebugLoc that corresponds to the specified line/col
61 static DebugLoc get(unsigned Line, unsigned Col,
64 /// getFromDILocation - Translate the DILocation quad into a DebugLoc.
65 static DebugLoc getFromDILocation(MDNode *N);
67 /// getFromDILexicalBlock - Translate the DILexicalBlock into a DebugLoc.
68 static DebugLoc getFromDILexicalBlock(MDNode *N);
81 /// getScope - This returns the scope pointer for this DebugLoc, or null if
85 /// getInlinedAt - This returns the InlinedAt pointer for this DebugLoc, or
93 /// getScopeNode - Get MDNode for DebugLoc's scope, or null if invalid.
98 DebugLoc getFnDebugLoc(const LLVMContext &Ctx) const;
100 /// getAsMDNode - This method converts the compressed DebugLoc node into a
104 bool operator==(const DebugLoc &DL) const {
107 bool operator!=(const DebugLoc &DL) const { return !(*this == DL); }
115 struct DenseMapInfo<DebugLoc> {
116 static DebugLoc getEmptyKey() { return DebugLoc::getEmptyKey(); }
117 static DebugLoc getTombstoneKey() { return DebugLoc::getTombstoneKey(); }
118 static unsigned getHashValue(const DebugLoc &Key);
119 static bool isEqual(DebugLoc LHS, DebugLoc RHS) { return LHS == RHS; }