1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

[pdb] Fix broken unit test compilation.

llvm-svn: 272059
This commit is contained in:
Zachary Turner 2016-06-07 20:46:39 +00:00
parent d4ca019632
commit 6663a6a4c4

View File

@ -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