diff options
author | Zachary Turner <zturner@google.com> | 2017-06-23 21:50:54 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2017-06-23 21:50:54 +0000 |
commit | c2f5b4bfd9f09475af7162e6cced5876fb7736f8 (patch) | |
tree | f941338bc3df605ef45aa68b2477886872ee12f1 /llvm/lib/DebugInfo/CodeView | |
parent | 2c19c1be56e7b365cb893003ca896755ac3ddfff (diff) | |
download | bcm5719-llvm-c2f5b4bfd9f09475af7162e6cced5876fb7736f8.tar.gz bcm5719-llvm-c2f5b4bfd9f09475af7162e6cced5876fb7736f8.zip |
[llvm-pdbutil] Dump raw bytes of type and id records.
llvm-svn: 306167
Diffstat (limited to 'llvm/lib/DebugInfo/CodeView')
-rw-r--r-- | llvm/lib/DebugInfo/CodeView/LazyRandomTypeCollection.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/DebugInfo/CodeView/LazyRandomTypeCollection.cpp b/llvm/lib/DebugInfo/CodeView/LazyRandomTypeCollection.cpp index f06d9c84311..20f7e72c3af 100644 --- a/llvm/lib/DebugInfo/CodeView/LazyRandomTypeCollection.cpp +++ b/llvm/lib/DebugInfo/CodeView/LazyRandomTypeCollection.cpp @@ -67,6 +67,13 @@ void LazyRandomTypeCollection::reset(ArrayRef<uint8_t> Data, reset(toStringRef(Data), RecordCountHint); } +uint32_t LazyRandomTypeCollection::getOffsetOfType(TypeIndex Index) { + error(ensureTypeExists(Index)); + assert(contains(Index)); + + return Records[Index.toArrayIndex()].Offset; +} + CVType LazyRandomTypeCollection::getType(TypeIndex Index) { error(ensureTypeExists(Index)); assert(contains(Index)); |