summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/PDB/Native
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2017-05-12 19:18:12 +0000
committerZachary Turner <zturner@google.com>2017-05-12 19:18:12 +0000
commitdd3a739d52ddb9ec2c79cc5cef1b57750f48d85d (patch)
treea9566a21c68cb7513466d2593ca10f331d90bbe1 /llvm/lib/DebugInfo/PDB/Native
parent7cd5876e6031851ba033059f9ef3a3c238abcc82 (diff)
downloadbcm5719-llvm-dd3a739d52ddb9ec2c79cc5cef1b57750f48d85d.tar.gz
bcm5719-llvm-dd3a739d52ddb9ec2c79cc5cef1b57750f48d85d.zip
[CodeView] Add a random access type visitor.
This adds a visitor that is capable of accessing type records randomly and caching intermediate results that it learns about during partial linear scans. This yields amortized O(1) access to a type stream even though type streams cannot normally be indexed. Differential Revision: https://reviews.llvm.org/D33009 llvm-svn: 302936
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/Native')
-rw-r--r--llvm/lib/DebugInfo/PDB/Native/TpiStreamBuilder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/DebugInfo/PDB/Native/TpiStreamBuilder.cpp b/llvm/lib/DebugInfo/PDB/Native/TpiStreamBuilder.cpp
index 375c35b1114..701a318511b 100644
--- a/llvm/lib/DebugInfo/PDB/Native/TpiStreamBuilder.cpp
+++ b/llvm/lib/DebugInfo/PDB/Native/TpiStreamBuilder.cpp
@@ -109,7 +109,7 @@ uint32_t TpiStreamBuilder::calculateHashBufferSize() const {
}
uint32_t TpiStreamBuilder::calculateIndexOffsetSize() const {
- return TypeIndexOffsets.size() * sizeof(TypeIndexOffset);
+ return TypeIndexOffsets.size() * sizeof(codeview::TypeIndexOffset);
}
Error TpiStreamBuilder::finalizeMsfLayout() {
OpenPOWER on IntegriCloud