[llvm] r272059 - [pdb] Fix broken unit test compilation.
Zachary Turner via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 7 13:46:39 PDT 2016
Author: zturner
Date: Tue Jun 7 15:46:39 2016
New Revision: 272059
URL: http://llvm.org/viewvc/llvm-project?rev=272059&view=rev
Log:
[pdb] Fix broken unit test compilation.
Modified:
llvm/trunk/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp
Modified: llvm/trunk/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp?rev=272059&r1=272058&r2=272059&view=diff
==============================================================================
--- llvm/trunk/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp (original)
+++ llvm/trunk/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp Tue Jun 7 15:46:39 2016
@@ -61,14 +61,14 @@ public:
return ArrayRef<support::ulittle32_t>();
return Blocks;
}
- virtual StringRef getBlockData(uint32_t BlockIndex,
- uint32_t NumBytes) const override {
- return StringRef(&Data[BlockIndex], NumBytes);
+ virtual ArrayRef<uint8_t> getBlockData(uint32_t BlockIndex,
+ uint32_t NumBytes) const override {
+ return ArrayRef<uint8_t>(&Data[BlockIndex], NumBytes);
}
private:
std::vector<support::ulittle32_t> Blocks;
- std::vector<char> Data;
+ std::vector<uint8_t> Data;
};
// Tests that a read which is entirely contained within a single block works
More information about the llvm-commits
mailing list