diff options
author | Alexey Samsonov <samsonov@google.com> | 2013-08-06 10:32:39 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2013-08-06 10:32:39 +0000 |
commit | c2e008734b02347c5fa3c888c5a23dda27433afb (patch) | |
tree | 3654dff6bb97da21cae3f63c475f50f9846e8ecd /llvm/lib/DebugInfo/DWARFContext.h | |
parent | 03c0281a17ee5734cb0595aec403dbbf3de6a2f2 (diff) | |
download | bcm5719-llvm-c2e008734b02347c5fa3c888c5a23dda27433afb.tar.gz bcm5719-llvm-c2e008734b02347c5fa3c888c5a23dda27433afb.zip |
Add LLVM-style RTTI to DIContext/DWARFContext classes
llvm-svn: 187790
Diffstat (limited to 'llvm/lib/DebugInfo/DWARFContext.h')
-rw-r--r-- | llvm/lib/DebugInfo/DWARFContext.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/llvm/lib/DebugInfo/DWARFContext.h b/llvm/lib/DebugInfo/DWARFContext.h index 058476e34d3..5d8f714505c 100644 --- a/llvm/lib/DebugInfo/DWARFContext.h +++ b/llvm/lib/DebugInfo/DWARFContext.h @@ -48,7 +48,12 @@ class DWARFContext : public DIContext { void parseDWOCompileUnits(); public: - DWARFContext() {} + DWARFContext() : DIContext(CK_DWARF) {} + + static bool classof(const DIContext *DICtx) { + return DICtx->getKind() == CK_DWARF; + } + virtual void dump(raw_ostream &OS, DIDumpType DumpType = DIDT_All); /// Get the number of compile units in this context. |