summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/PDB/Raw/MappedBlockStream.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2016-05-03 00:28:21 +0000
committerZachary Turner <zturner@google.com>2016-05-03 00:28:21 +0000
commitf5c59654f7c8438294ecb6ac0b8613782e0d3956 (patch)
tree8d242825d7c9ecf7eebccc365b729d0bdf04856a /llvm/lib/DebugInfo/PDB/Raw/MappedBlockStream.cpp
parent88bb163f816d00d2805b6a0d97ea0f4200b84553 (diff)
downloadbcm5719-llvm-f5c59654f7c8438294ecb6ac0b8613782e0d3956.tar.gz
bcm5719-llvm-f5c59654f7c8438294ecb6ac0b8613782e0d3956.zip
Parse the TPI (type information) stream of PDB files.
This parses the TPI stream (stream 2) from the PDB file. This stream contains some header information followed by a series of codeview records. There is some additional complexity here in that alongside this stream of codeview records is a serialized hash table in order to efficiently query the types. We parse the necessary bookkeeping information to allow us to reconstruct the hash table, but we do not actually construct it yet as there are still a few things that need to be understood first. Differential Revision: http://reviews.llvm.org/D19840 Reviewed By: ruiu, rnk llvm-svn: 268343
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/Raw/MappedBlockStream.cpp')
-rw-r--r--llvm/lib/DebugInfo/PDB/Raw/MappedBlockStream.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/DebugInfo/PDB/Raw/MappedBlockStream.cpp b/llvm/lib/DebugInfo/PDB/Raw/MappedBlockStream.cpp
index 860f7639a06..25c28e587a4 100644
--- a/llvm/lib/DebugInfo/PDB/Raw/MappedBlockStream.cpp
+++ b/llvm/lib/DebugInfo/PDB/Raw/MappedBlockStream.cpp
@@ -51,3 +51,9 @@ MappedBlockStream::readBytes(uint32_t Offset,
return std::error_code();
}
+
+std::error_code MappedBlockStream::getArrayRef(uint32_t Offset,
+ ArrayRef<uint8_t> &Buffer,
+ uint32_t Length) const {
+ return std::make_error_code(std::errc::operation_not_supported);
+}
OpenPOWER on IntegriCloud