[llvm] r329733 - [DebugInfoPDB] Add missing test for findSymbolByRVA and findSymbolByAddr

Aaron Smith via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 10 11:12:49 PDT 2018


Author: asmith
Date: Tue Apr 10 11:12:49 2018
New Revision: 329733

URL: http://llvm.org/viewvc/llvm-project?rev=329733&view=rev
Log:
[DebugInfoPDB] Add missing test for findSymbolByRVA and findSymbolByAddr

Modified:
    llvm/trunk/unittests/DebugInfo/PDB/PDBApiTest.cpp

Modified: llvm/trunk/unittests/DebugInfo/PDB/PDBApiTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/DebugInfo/PDB/PDBApiTest.cpp?rev=329733&r1=329732&r2=329733&view=diff
==============================================================================
--- llvm/trunk/unittests/DebugInfo/PDB/PDBApiTest.cpp (original)
+++ llvm/trunk/unittests/DebugInfo/PDB/PDBApiTest.cpp Tue Apr 10 11:12:49 2018
@@ -87,6 +87,15 @@ class MockSession : public IPDBSession {
   findSymbolByAddress(uint64_t Address, PDB_SymType Type) const override {
     return nullptr;
   }
+  std::unique_ptr<PDBSymbol> findSymbolByRVA(uint32_t RVA,
+                                             PDB_SymType Type) const override {
+    return nullptr;
+  }
+  std::unique_ptr<PDBSymbol>
+  findSymbolBySectOffset(uint32_t Sect, uint32_t Offset,
+                         PDB_SymType Type) const override {
+    return nullptr;
+  }
   std::unique_ptr<IPDBEnumLineNumbers>
   findLineNumbers(const PDBSymbolCompiland &Compiland,
                   const IPDBSourceFile &File) const override {




More information about the llvm-commits mailing list