summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/DWARFContext.h
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2013-08-06 10:32:39 +0000
committerAlexey Samsonov <samsonov@google.com>2013-08-06 10:32:39 +0000
commitc2e008734b02347c5fa3c888c5a23dda27433afb (patch)
tree3654dff6bb97da21cae3f63c475f50f9846e8ecd /llvm/lib/DebugInfo/DWARFContext.h
parent03c0281a17ee5734cb0595aec403dbbf3de6a2f2 (diff)
downloadbcm5719-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.h7
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.
OpenPOWER on IntegriCloud