From bae16b3f5355e50bb4a0d5265f5304142a6afc0b Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Sun, 8 Feb 2015 20:58:09 +0000 Subject: 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. llvm-svn: 228542 --- llvm/lib/DebugInfo/PDB/PDBSymbolFuncDebugStart.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/DebugInfo/PDB/PDBSymbolFuncDebugStart.cpp') diff --git a/llvm/lib/DebugInfo/PDB/PDBSymbolFuncDebugStart.cpp b/llvm/lib/DebugInfo/PDB/PDBSymbolFuncDebugStart.cpp index ffa12688869..6128e05460d 100644 --- a/llvm/lib/DebugInfo/PDB/PDBSymbolFuncDebugStart.cpp +++ b/llvm/lib/DebugInfo/PDB/PDBSymbolFuncDebugStart.cpp @@ -15,7 +15,7 @@ using namespace llvm; PDBSymbolFuncDebugStart::PDBSymbolFuncDebugStart( - std::unique_ptr Symbol) - : PDBSymbol(std::move(Symbol)) {} + IPDBSession &PDBSession, std::unique_ptr Symbol) + : PDBSymbol(Session, std::move(Symbol)) {} void PDBSymbolFuncDebugStart::dump(llvm::raw_ostream &OS) const {} -- cgit v1.2.3