summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/PDB/PDBSymbolCustom.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
commitbae16b3f5355e50bb4a0d5265f5304142a6afc0b (patch)
treed84c7496b24b21ae5cba39e1af6adbdcbf88af07 /llvm/lib/DebugInfo/PDB/PDBSymbolCustom.cpp
parent9be09a36172701e9e906cced96b022fd41f52c2e (diff)
downloadbcm5719-llvm-bae16b3f5355e50bb4a0d5265f5304142a6afc0b.tar.gz
bcm5719-llvm-bae16b3f5355e50bb4a0d5265f5304142a6afc0b.zip
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
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/PDBSymbolCustom.cpp')
-rw-r--r--llvm/lib/DebugInfo/PDB/PDBSymbolCustom.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/DebugInfo/PDB/PDBSymbolCustom.cpp b/llvm/lib/DebugInfo/PDB/PDBSymbolCustom.cpp
index 449151d8393..ce131422a25 100644
--- a/llvm/lib/DebugInfo/PDB/PDBSymbolCustom.cpp
+++ b/llvm/lib/DebugInfo/PDB/PDBSymbolCustom.cpp
@@ -15,8 +15,9 @@
using namespace llvm;
-PDBSymbolCustom::PDBSymbolCustom(std::unique_ptr<IPDBRawSymbol> CustomSymbol)
- : PDBSymbol(std::move(CustomSymbol)) {}
+PDBSymbolCustom::PDBSymbolCustom(IPDBSession &PDBSession,
+ std::unique_ptr<IPDBRawSymbol> CustomSymbol)
+ : PDBSymbol(PDBSession, std::move(CustomSymbol)) {}
void PDBSymbolCustom::getDataBytes(llvm::SmallVector<uint8_t, 32> &bytes) {
RawSymbol->getDataBytes(bytes);
OpenPOWER on IntegriCloud