summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/DebugInfo/PDB/PDBApiTest.cpp
diff options
context:
space:
mode:
authorAaron Smith <aaron.smith@microsoft.com>2018-03-26 22:10:02 +0000
committerAaron Smith <aaron.smith@microsoft.com>2018-03-26 22:10:02 +0000
commit53708a5e9e60bfc5e7dc9c1135262d50f39454b4 (patch)
tree4f757af584ecb579a3616f887273bf3de40b7a42 /llvm/unittests/DebugInfo/PDB/PDBApiTest.cpp
parent44357eef97a47072c90f2930a12059aefa09a0e8 (diff)
downloadbcm5719-llvm-53708a5e9e60bfc5e7dc9c1135262d50f39454b4.tar.gz
bcm5719-llvm-53708a5e9e60bfc5e7dc9c1135262d50f39454b4.zip
[DebugInfoPDB] Add DIA implementation of addressForVA and addressForRVA
These are used in finding line numbers for PDBSymbolData llvm-svn: 328585
Diffstat (limited to 'llvm/unittests/DebugInfo/PDB/PDBApiTest.cpp')
-rw-r--r--llvm/unittests/DebugInfo/PDB/PDBApiTest.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/llvm/unittests/DebugInfo/PDB/PDBApiTest.cpp b/llvm/unittests/DebugInfo/PDB/PDBApiTest.cpp
index 9f7fae55f77..314a0138542 100644
--- a/llvm/unittests/DebugInfo/PDB/PDBApiTest.cpp
+++ b/llvm/unittests/DebugInfo/PDB/PDBApiTest.cpp
@@ -75,7 +75,14 @@ class MockSession : public IPDBSession {
getSourceFileById(uint32_t SymbolId) const override {
return nullptr;
}
-
+ bool addressForVA(uint64_t VA, uint32_t &Section,
+ uint32_t &Offset) const override {
+ return false;
+ }
+ bool addressForRVA(uint32_t RVA, uint32_t &Section,
+ uint32_t &Offset) const override {
+ return false;
+ }
std::unique_ptr<PDBSymbol>
findSymbolByAddress(uint64_t Address, PDB_SymType Type) const override {
return nullptr;
@@ -482,5 +489,4 @@ TEST_F(PDBApiTest, Dyncast) {
VerifyUnknownDyncasts();
}
-
} // end anonymous namespace
OpenPOWER on IntegriCloud