summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/PDB/Raw/StreamReader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/Raw/StreamReader.cpp')
-rw-r--r--llvm/lib/DebugInfo/PDB/Raw/StreamReader.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/lib/DebugInfo/PDB/Raw/StreamReader.cpp b/llvm/lib/DebugInfo/PDB/Raw/StreamReader.cpp
index 42fe4521acf..18d29953e25 100644
--- a/llvm/lib/DebugInfo/PDB/Raw/StreamReader.cpp
+++ b/llvm/lib/DebugInfo/PDB/Raw/StreamReader.cpp
@@ -39,3 +39,11 @@ std::error_code StreamReader::readZeroString(std::string &Dest) {
} while (C != '\0');
return std::error_code();
}
+
+std::error_code StreamReader::getArrayRef(ArrayRef<uint8_t> &Array,
+ uint32_t Length) {
+ if (auto EC = Stream.getArrayRef(Offset, Array, Length))
+ return EC;
+ Offset += Length;
+ return std::error_code();
+}
OpenPOWER on IntegriCloud