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 | 749d35c593eb3238c5dcb7284f1e3aee60d57b9e (patch) | |
tree | 728270bec409941621593b81a9641f7f3a8b984c /lib/DebugInfo/DWARFContext.h | |
parent | d113448c1dd5f40522c3c02db96e87a9eb59eaf4 (diff) | |
download | llvm-749d35c593eb3238c5dcb7284f1e3aee60d57b9e.tar.gz llvm-749d35c593eb3238c5dcb7284f1e3aee60d57b9e.tar.bz2 llvm-749d35c593eb3238c5dcb7284f1e3aee60d57b9e.tar.xz |
Add LLVM-style RTTI to DIContext/DWARFContext classes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187790 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/DebugInfo/DWARFContext.h')
-rw-r--r-- | lib/DebugInfo/DWARFContext.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/DebugInfo/DWARFContext.h b/lib/DebugInfo/DWARFContext.h index 058476e34d..5d8f714505 100644 --- a/lib/DebugInfo/DWARFContext.h +++ b/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. |