From ef4b21a98c77127f281bd60a4cff9bf4ba7ccdf7 Mon Sep 17 00:00:00 2001 From: Adrian McCarthy Date: Thu, 9 Feb 2017 22:49:35 +0000 Subject: [PATCH] Fix build break from r294633. llvm-svn: 294642 --- include/llvm/DebugInfo/PDB/Native/NativeRawSymbol.h | 3 --- lib/DebugInfo/PDB/Native/NativeRawSymbol.cpp | 6 +++--- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/include/llvm/DebugInfo/PDB/Native/NativeRawSymbol.h b/include/llvm/DebugInfo/PDB/Native/NativeRawSymbol.h index e8961c85785..a951ab9ff72 100644 --- a/include/llvm/DebugInfo/PDB/Native/NativeRawSymbol.h +++ b/include/llvm/DebugInfo/PDB/Native/NativeRawSymbol.h @@ -196,9 +196,6 @@ public: bool isVolatileType() const override; bool wasInlined() const override; std::string getUnused() const override; - -private: - const NativeSession &Session; }; } diff --git a/lib/DebugInfo/PDB/Native/NativeRawSymbol.cpp b/lib/DebugInfo/PDB/Native/NativeRawSymbol.cpp index 0f28a5aec7b..aa74ab0a5a5 100644 --- a/lib/DebugInfo/PDB/Native/NativeRawSymbol.cpp +++ b/lib/DebugInfo/PDB/Native/NativeRawSymbol.cpp @@ -12,14 +12,14 @@ #include "llvm/ADT/STLExtras.h" #include "llvm/DebugInfo/PDB/IPDBEnumChildren.h" #include "llvm/DebugInfo/PDB/PDBExtras.h" +#include "llvm/DebugInfo/PDB/Native/NativeSession.h" #include "llvm/Support/ConvertUTF.h" #include "llvm/Support/raw_ostream.h" using namespace llvm; using namespace llvm::pdb; -NativeRawSymbol::NativeRawSymbol(const NativeSession &PDBSession) - : Session(PDBSession) {} +NativeRawSymbol::NativeRawSymbol(const NativeSession &PDBSession) {} void NativeRawSymbol::dump(raw_ostream &OS, int Indent) const {} @@ -328,7 +328,7 @@ PDB_SymType NativeRawSymbol::getSymTag() const { } PDB_UniqueId NativeRawSymbol::getGuid() const { - return {0, 0, 0, 0}; + return {0}; } int32_t NativeRawSymbol::getOffset() const {