summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/DebugInfo/PDB/PDBApiTest.cpp
diff options
context:
space:
mode:
authorAaron Smith <aaron.smith@microsoft.com>2018-03-07 00:33:09 +0000
committerAaron Smith <aaron.smith@microsoft.com>2018-03-07 00:33:09 +0000
commit25409ddf2a053bd179f53e450a926bb5650f09af (patch)
tree02cb5b95181cc6b8b5475e397b98baceff8236a7 /llvm/unittests/DebugInfo/PDB/PDBApiTest.cpp
parent6a58efdf76ccd0453555bc5c7a2236c69696885b (diff)
downloadbcm5719-llvm-25409ddf2a053bd179f53e450a926bb5650f09af.tar.gz
bcm5719-llvm-25409ddf2a053bd179f53e450a926bb5650f09af.zip
[DebugInfoPDB] Add DIA implementation for getSrcLineOnTypeDefn
Summary: This helps to determine the line number for a PDB type with definition Reviewers: zturner, llvm-commits, rnk Reviewed By: zturner Subscribers: rengolin, JDevlieghere Differential Revision: https://reviews.llvm.org/D44119 llvm-svn: 326857
Diffstat (limited to 'llvm/unittests/DebugInfo/PDB/PDBApiTest.cpp')
-rw-r--r--llvm/unittests/DebugInfo/PDB/PDBApiTest.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/unittests/DebugInfo/PDB/PDBApiTest.cpp b/llvm/unittests/DebugInfo/PDB/PDBApiTest.cpp
index 569fc145bb5..f70fca7e305 100644
--- a/llvm/unittests/DebugInfo/PDB/PDBApiTest.cpp
+++ b/llvm/unittests/DebugInfo/PDB/PDBApiTest.cpp
@@ -11,6 +11,7 @@
#include "llvm/ADT/STLExtras.h"
#include "llvm/DebugInfo/PDB/IPDBEnumChildren.h"
+#include "llvm/DebugInfo/PDB/IPDBLineNumber.h"
#include "llvm/DebugInfo/PDB/IPDBRawSymbol.h"
#include "llvm/DebugInfo/PDB/IPDBSession.h"
#include "llvm/DebugInfo/PDB/IPDBSourceFile.h"
@@ -195,6 +196,10 @@ public:
return {};
}
+ std::unique_ptr<IPDBLineNumber> getSrcLineOnTypeDefn() const override {
+ return nullptr;
+ }
+
MOCK_SYMBOL_ACCESSOR(getAccess)
MOCK_SYMBOL_ACCESSOR(getAddressOffset)
MOCK_SYMBOL_ACCESSOR(getAddressSection)
OpenPOWER on IntegriCloud