OSDN Git Service

Add IDs and clone methods to NativeRawSymbol
authorAdrian McCarthy <amccarth@google.com>
Thu, 22 Jun 2017 18:43:18 +0000 (18:43 +0000)
committerAdrian McCarthy <amccarth@google.com>
Thu, 22 Jun 2017 18:43:18 +0000 (18:43 +0000)
commitdba69154c2c801a880c07faa606591dfd11097d9
treea91f1d8cec0931e9e6e895a8c653ae3ea38f722b
parentb841963b254e38f199316604e9afbf74094c65c3
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@306042 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/DebugInfo/PDB/Native/NativeCompilandSymbol.h
include/llvm/DebugInfo/PDB/Native/NativeExeSymbol.h
include/llvm/DebugInfo/PDB/Native/NativeRawSymbol.h
lib/DebugInfo/PDB/Native/NativeCompilandSymbol.cpp
lib/DebugInfo/PDB/Native/NativeEnumModules.cpp
lib/DebugInfo/PDB/Native/NativeExeSymbol.cpp
lib/DebugInfo/PDB/Native/NativeRawSymbol.cpp
lib/DebugInfo/PDB/Native/NativeSession.cpp