summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.h
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2019-11-15 10:13:16 -0800
committerAdrian Prantl <aprantl@apple.com>2019-11-15 11:52:13 -0800
commit7d71dd928d1dcc838dc4dbe5cf294f557609f271 (patch)
treeae936b30de18fab3690edccce5b21141a6535e63 /lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.h
parent2f95b6488bfa7197cae69f511066d84e926573ab (diff)
downloadbcm5719-llvm-7d71dd928d1dcc838dc4dbe5cf294f557609f271.tar.gz
bcm5719-llvm-7d71dd928d1dcc838dc4dbe5cf294f557609f271.zip
Add RTTI support to the SymbolFile class hierarchy
Differential Revision: https://reviews.llvm.org/D70322
Diffstat (limited to 'lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.h')
-rw-r--r--lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.h b/lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.h
index c041dab80cc..7a4eee48771 100644
--- a/lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.h
+++ b/lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.h
@@ -22,7 +22,18 @@
class PDBASTParser;
class SymbolFilePDB : public lldb_private::SymbolFile {
+ /// LLVM RTTI support.
+ static char ID;
+
public:
+ /// LLVM RTTI support.
+ /// \{
+ bool isA(const void *ClassID) const override {
+ return ClassID == &ID || SymbolFile::isA(ClassID);
+ }
+ static bool classof(const SymbolFile *obj) { return obj->isA(&ID); }
+ /// \}
+
// Static Functions
static void Initialize();
OpenPOWER on IntegriCloud