aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/DebugInfo/PDB/Native/PDBFile.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2017-02-18 01:35:33 +0000
committerZachary Turner <zturner@google.com>2017-02-18 01:35:33 +0000
commit181fe17b6f0f434d39b32b90b12844f7a9b55a3b (patch)
treea9c68cad05c7c6c643e75369b57019c314dce048 /llvm/lib/DebugInfo/PDB/Native/PDBFile.cpp
parent0aef305f352235fe66d44e8f253b3b09d27a1b10 (diff)
downloadllvm-181fe17b6f0f434d39b32b90b12844f7a9b55a3b.zip
llvm-181fe17b6f0f434d39b32b90b12844f7a9b55a3b.tar.gz
llvm-181fe17b6f0f434d39b32b90b12844f7a9b55a3b.tar.bz2
Don't assume little endian in StreamReader / StreamWriter.
In an effort to generalize this so it can be used by more than just PDB code, we shouldn't assume little endian. llvm-svn: 295525
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/Native/PDBFile.cpp')
-rw-r--r--llvm/lib/DebugInfo/PDB/Native/PDBFile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/DebugInfo/PDB/Native/PDBFile.cpp b/llvm/lib/DebugInfo/PDB/Native/PDBFile.cpp
index 3a3692d..26d9e0e 100644
--- a/llvm/lib/DebugInfo/PDB/Native/PDBFile.cpp
+++ b/llvm/lib/DebugInfo/PDB/Native/PDBFile.cpp
@@ -186,7 +186,7 @@ Error PDBFile::parseStreamData() {
// been parsed, we can avoid this and reuse MappedBlockStream.
auto DS = MappedBlockStream::createDirectoryStream(ContainerLayout, *Buffer);
StreamReader Reader(*DS);
- if (auto EC = Reader.readInteger(NumStreams))
+ if (auto EC = Reader.readInteger(NumStreams, llvm::support::little))
return EC;
if (auto EC = Reader.readArray(ContainerLayout.StreamSizes, NumStreams))