summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2016-07-10 03:34:47 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2016-07-10 03:34:47 +0000
commit6211b1f1f9c1434d9612aada7337ca9c6bca4a10 (patch)
tree10d918ee1534fa39ae367c0a8deac78abee498f6 /llvm/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp
parentdaaf9f1379539baaeb9e6a6c1a62031d7a0ddf6c (diff)
downloadbcm5719-llvm-6211b1f1f9c1434d9612aada7337ca9c6bca4a10.tar.gz
bcm5719-llvm-6211b1f1f9c1434d9612aada7337ca9c6bca4a10.zip
[llvm-pdbdump] Propagate errors a little more consistently
PDBFile::getBlockData didn't really return any indication that it failed. It merely returned an empty buffer. llvm-svn: 275009
Diffstat (limited to 'llvm/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp')
-rw-r--r--llvm/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp b/llvm/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp
index e54f7ab1250..dd6fce23736 100644
--- a/llvm/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp
+++ b/llvm/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp
@@ -61,8 +61,8 @@ public:
return ArrayRef<support::ulittle32_t>();
return Blocks;
}
- ArrayRef<uint8_t> getBlockData(uint32_t BlockIndex,
- uint32_t NumBytes) const override {
+ Expected<ArrayRef<uint8_t>> getBlockData(uint32_t BlockIndex,
+ uint32_t NumBytes) const override {
return ArrayRef<uint8_t>(&Data[BlockIndex], NumBytes);
}
OpenPOWER on IntegriCloud