summaryrefslogtreecommitdiff
path: root/lib/DebugInfo/PDB/PDBSymbolTypeBaseClass.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2015-02-08 20:58:09 +0000
committerZachary Turner <zturner@google.com>2015-02-08 20:58:09 +0000
commit926749af90fbd6e4db5988628ecb81fbfac67afb (patch)
tree019d58eebe3ff3d76635fd60b2aa462ef9ede571 /lib/DebugInfo/PDB/PDBSymbolTypeBaseClass.cpp
parente755d452e02b018d68141324a602002379a17384 (diff)
DebugInfoPDB: Make the symbol base case hold an IPDBSession ref.
Dumping a symbol often requires access to data that isn't inside the symbol hierarchy, but which is only accessible through the top-level session. This patch is a pure interface change to give symbols a reference to the session. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228542 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/DebugInfo/PDB/PDBSymbolTypeBaseClass.cpp')
-rw-r--r--lib/DebugInfo/PDB/PDBSymbolTypeBaseClass.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/DebugInfo/PDB/PDBSymbolTypeBaseClass.cpp b/lib/DebugInfo/PDB/PDBSymbolTypeBaseClass.cpp
index 0decf479d6c..545d66e7c8e 100644
--- a/lib/DebugInfo/PDB/PDBSymbolTypeBaseClass.cpp
+++ b/lib/DebugInfo/PDB/PDBSymbolTypeBaseClass.cpp
@@ -15,7 +15,7 @@
using namespace llvm;
PDBSymbolTypeBaseClass::PDBSymbolTypeBaseClass(
- std::unique_ptr<IPDBRawSymbol> Symbol)
- : PDBSymbol(std::move(Symbol)) {}
+ IPDBSession &PDBSession, std::unique_ptr<IPDBRawSymbol> Symbol)
+ : PDBSymbol(Session, std::move(Symbol)) {}
void PDBSymbolTypeBaseClass::dump(llvm::raw_ostream &OS) const {}