summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/include/llvm/DebugInfo/PDB/Native/NativeRawSymbol.h3
-rw-r--r--llvm/lib/DebugInfo/PDB/Native/NativeRawSymbol.cpp6
2 files changed, 3 insertions, 6 deletions
diff --git a/llvm/include/llvm/DebugInfo/PDB/Native/NativeRawSymbol.h b/llvm/include/llvm/DebugInfo/PDB/Native/NativeRawSymbol.h
index e8961c85785..a951ab9ff72 100644
--- a/llvm/include/llvm/DebugInfo/PDB/Native/NativeRawSymbol.h
+++ b/llvm/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/llvm/lib/DebugInfo/PDB/Native/NativeRawSymbol.cpp b/llvm/lib/DebugInfo/PDB/Native/NativeRawSymbol.cpp
index 0f28a5aec7b..aa74ab0a5a5 100644
--- a/llvm/lib/DebugInfo/PDB/Native/NativeRawSymbol.cpp
+++ b/llvm/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 {
OpenPOWER on IntegriCloud