diff options
author | Aaron Smith <aaron.smith@microsoft.com> | 2017-11-16 14:33:09 +0000 |
---|---|---|
committer | Aaron Smith <aaron.smith@microsoft.com> | 2017-11-16 14:33:09 +0000 |
commit | 89bca9e56642a1631acfa7a874489a1a989927dc (patch) | |
tree | 5f320ecb28dc503746e9f113f52da06ecb5eca04 /llvm/unittests/DebugInfo/PDB/PDBApiTest.cpp | |
parent | e8e6acdac98cf0c1d7f15a7593590fb8dad64b1a (diff) | |
download | bcm5719-llvm-89bca9e56642a1631acfa7a874489a1a989927dc.tar.gz bcm5719-llvm-89bca9e56642a1631acfa7a874489a1a989927dc.zip |
[DebugInfo/PDB] Adding getUndecoratedNameEx and IPDB interfaces for IDiaEnumTables and IDiaTable.
Initial changes to support debugging PE/COFF files with LLDB on Windows through DIA SDK.
There is another set of changes required on the LLDB side before this does anything.
Differential Revision: https://reviews.llvm.org/D39517
llvm-svn: 318403
Diffstat (limited to 'llvm/unittests/DebugInfo/PDB/PDBApiTest.cpp')
-rw-r--r-- | llvm/unittests/DebugInfo/PDB/PDBApiTest.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/unittests/DebugInfo/PDB/PDBApiTest.cpp b/llvm/unittests/DebugInfo/PDB/PDBApiTest.cpp index 257a8879e43..e998acf009e 100644 --- a/llvm/unittests/DebugInfo/PDB/PDBApiTest.cpp +++ b/llvm/unittests/DebugInfo/PDB/PDBApiTest.cpp @@ -14,6 +14,7 @@ #include "llvm/DebugInfo/PDB/IPDBRawSymbol.h" #include "llvm/DebugInfo/PDB/IPDBSession.h" #include "llvm/DebugInfo/PDB/IPDBSourceFile.h" +#include "llvm/DebugInfo/PDB/IPDBTable.h" #include "llvm/DebugInfo/PDB/PDBSymbol.h" #include "llvm/DebugInfo/PDB/PDBSymbolAnnotation.h" @@ -118,6 +119,10 @@ class MockSession : public IPDBSession { std::unique_ptr<IPDBEnumDataStreams> getDebugStreams() const override { return nullptr; } + + std::unique_ptr<IPDBEnumTables> getEnumTables() const override { + return nullptr; + } }; class MockRawSymbol : public IPDBRawSymbol { @@ -152,6 +157,10 @@ public: PDB_SymType getSymTag() const override { return Type; } + std::string getUndecoratedNameEx(PDB_UndnameFlags Flags) const override { + return {}; + } + MOCK_SYMBOL_ACCESSOR(getAccess) MOCK_SYMBOL_ACCESSOR(getAddressOffset) MOCK_SYMBOL_ACCESSOR(getAddressSection) |