diff options
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/DebugInfo.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/DebugInfo.h b/include/llvm/DebugInfo.h index 1d7384c..02335ee 100644 --- a/include/llvm/DebugInfo.h +++ b/include/llvm/DebugInfo.h @@ -109,6 +109,13 @@ namespace llvm { // implicitly convertable to pointer. LLVM_EXPLICIT operator bool() const { return DbgNode != 0; } + bool operator==(DIDescriptor Other) const { + return DbgNode != Other.DbgNode; + } + bool operator!=(DIDescriptor Other) const { + return !operator==(Other); + } + unsigned getTag() const { return getUnsignedField(0) & ~LLVMDebugVersionMask; } |