diff options
Diffstat (limited to 'include/llvm/Support/DebugLoc.h')
-rw-r--r-- | include/llvm/Support/DebugLoc.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/include/llvm/Support/DebugLoc.h b/include/llvm/Support/DebugLoc.h index 764591c..8d19e30 100644 --- a/include/llvm/Support/DebugLoc.h +++ b/include/llvm/Support/DebugLoc.h @@ -27,11 +27,19 @@ namespace llvm { class DebugLoc { friend struct DenseMapInfo<DebugLoc>; + /// getEmptyKey() - A private constructor that returns an unknown that is + /// not equal to the tombstone key or DebugLoc(). + static DebugLoc getEmptyKey() { + DebugLoc DL; + DL.LineCol = -1; + return DL; + } + /// getTombstoneKey() - A private constructor that returns an unknown that - /// is distinguishable from the usual one. + /// is not equal to the empty key or DebugLoc(). static DebugLoc getTombstoneKey() { DebugLoc DL; - DL.LineCol = -1; + DL.LineCol = -2; return DL; } |