summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/PDB/PDBSymbolFuncDebugStart.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2018-09-05 23:30:38 +0000
committerZachary Turner <zturner@google.com>2018-09-05 23:30:38 +0000
commit7999b4fa48b31f67efa3662443a5c78343eb6f19 (patch)
treed29f403f65f7959cb4fbc5b70c603a6f16f91c40 /llvm/lib/DebugInfo/PDB/PDBSymbolFuncDebugStart.cpp
parente9f1df84af2f50a2cde01f7f2333f12ae326f3c1 (diff)
downloadbcm5719-llvm-7999b4fa48b31f67efa3662443a5c78343eb6f19.tar.gz
bcm5719-llvm-7999b4fa48b31f67efa3662443a5c78343eb6f19.zip
[PDB] Refactor the PDB symbol classes to fix a reuse bug.
The way DIA SDK works is that when you request a symbol, it gets assigned an internal identifier that is unique for the life of the session. You can then use this identifier to get back the same symbol, with all of the same internal state that it had before, even if you "destroyed" the original copy of the object you had. This didn't work properly in our native implementation, and if you destroyed an object for a particular symbol, then requested the same symbol again, it would get assigned a new ID and you'd get a fresh copy of the object. In order to fix this some refactoring had to happen to properly reuse cached objects. Some unittests are added to verify that symbol reuse is taking place, making use of the new unittest input feature. llvm-svn: 341503
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/PDBSymbolFuncDebugStart.cpp')
-rw-r--r--llvm/lib/DebugInfo/PDB/PDBSymbolFuncDebugStart.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/llvm/lib/DebugInfo/PDB/PDBSymbolFuncDebugStart.cpp b/llvm/lib/DebugInfo/PDB/PDBSymbolFuncDebugStart.cpp
index a448a404dc4..77b510873be 100644
--- a/llvm/lib/DebugInfo/PDB/PDBSymbolFuncDebugStart.cpp
+++ b/llvm/lib/DebugInfo/PDB/PDBSymbolFuncDebugStart.cpp
@@ -17,12 +17,6 @@
using namespace llvm;
using namespace llvm::pdb;
-PDBSymbolFuncDebugStart::PDBSymbolFuncDebugStart(
- const IPDBSession &PDBSession, std::unique_ptr<IPDBRawSymbol> Symbol)
- : PDBSymbol(PDBSession, std::move(Symbol)) {
- assert(RawSymbol->getSymTag() == PDB_SymType::FuncDebugStart);
-}
-
void PDBSymbolFuncDebugStart::dump(PDBSymDumper &Dumper) const {
Dumper.dump(*this);
}
OpenPOWER on IntegriCloud