diff options
| author | Adrian Prantl <aprantl@apple.com> | 2019-11-15 10:13:16 -0800 |
|---|---|---|
| committer | Adrian Prantl <aprantl@apple.com> | 2019-11-15 11:52:13 -0800 |
| commit | 7d71dd928d1dcc838dc4dbe5cf294f557609f271 (patch) | |
| tree | ae936b30de18fab3690edccce5b21141a6535e63 /lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.h | |
| parent | 2f95b6488bfa7197cae69f511066d84e926573ab (diff) | |
| download | bcm5719-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/NativePDB/SymbolFileNativePDB.h')
| -rw-r--r-- | lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.h b/lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.h index e89cb2c0a7c..a37de0f58ef 100644 --- a/lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.h +++ b/lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.h @@ -41,7 +41,18 @@ class PdbAstBuilder; class SymbolFileNativePDB : public SymbolFile { friend class UdtRecordCompleter; + /// 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(); |

