aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/DebugInfo/PDB/Native/NativeSession.cpp
diff options
context:
space:
mode:
authorAdrian McCarthy <amccarth@google.com>2017-06-22 18:43:18 +0000
committerAdrian McCarthy <amccarth@google.com>2017-06-22 18:43:18 +0000
commit31bcb6f680a07ddfc90f01dbfeb38b9994a67c3c (patch)
treeda3e0cb31b60411e037123d09f8f4f20b6be3a2e /llvm/lib/DebugInfo/PDB/Native/NativeSession.cpp
parent6a4b080a5f10f873e163eb526e499a75accea3a2 (diff)
downloadllvm-31bcb6f680a07ddfc90f01dbfeb38b9994a67c3c.zip
llvm-31bcb6f680a07ddfc90f01dbfeb38b9994a67c3c.tar.gz
llvm-31bcb6f680a07ddfc90f01dbfeb38b9994a67c3c.tar.bz2
Add IDs and clone methods to NativeRawSymbol
All NativeRawSymbols will have a unique symbol ID (retrievable via getSymIndexId). For now, these are initialized to 0, but soon the NativeSession will be responsible for creating the raw symbols, and it will assign unique IDs. The symbol cache in the NativeSession will also require the ability to clone raw symbols, so I've provided implementations for that as well. llvm-svn: 306042
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/Native/NativeSession.cpp')
-rw-r--r--llvm/lib/DebugInfo/PDB/Native/NativeSession.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/DebugInfo/PDB/Native/NativeSession.cpp b/llvm/lib/DebugInfo/PDB/Native/NativeSession.cpp
index c59cf86..3ab381e 100644
--- a/llvm/lib/DebugInfo/PDB/Native/NativeSession.cpp
+++ b/llvm/lib/DebugInfo/PDB/Native/NativeSession.cpp
@@ -71,7 +71,7 @@ uint64_t NativeSession::getLoadAddress() const { return 0; }
void NativeSession::setLoadAddress(uint64_t Address) {}
std::unique_ptr<PDBSymbolExe> NativeSession::getGlobalScope() {
- auto RawSymbol = llvm::make_unique<NativeExeSymbol>(*this);
+ auto RawSymbol = llvm::make_unique<NativeExeSymbol>(*this, 0);
auto PdbSymbol(PDBSymbol::create(*this, std::move(RawSymbol)));
std::unique_ptr<PDBSymbolExe> ExeSymbol(
static_cast<PDBSymbolExe *>(PdbSymbol.release()));