diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2016-06-01 14:26:54 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2016-06-01 14:26:54 +0000 |
commit | 47d1e37738efec45eddd128835ff988c11861396 (patch) | |
tree | e9d2a175971bfc09f909d712a93d45558bef72f4 /llvm/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp | |
parent | a13a0e1aeab04b6f23bfcd2b4fad961265dea08e (diff) | |
download | bcm5719-llvm-47d1e37738efec45eddd128835ff988c11861396.tar.gz bcm5719-llvm-47d1e37738efec45eddd128835ff988c11861396.zip |
MappedBlockStreamTest.cpp: Appease msc18 to avoid initializer for std::vector.
llvm-svn: 271397
Diffstat (limited to 'llvm/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp')
-rw-r--r-- | llvm/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/llvm/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp b/llvm/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp index b98a3c81ed6..b93423de7ac 100644 --- a/llvm/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp +++ b/llvm/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp @@ -37,11 +37,15 @@ namespace { consumeError(std::move(E)); \ } +static const uint32_t BlocksAry[] = {0, 1, 2, 5, 4, 3, 6, 7, 8, 9}; +static const char DataAry[] = {'A', 'B', 'C', 'F', 'E', + 'D', 'G', 'H', 'I', 'J'}; + class DiscontiguousFile : public IPDBFile { public: DiscontiguousFile() - : Blocks{0, 1, 2, 5, 4, 3, 6, 7, 8, 9}, - Data{'A', 'B', 'C', 'F', 'E', 'D', 'G', 'H', 'I', 'J'} {} + : Blocks(&BlocksAry[0], &BlocksAry[10]), Data(&DataAry[0], &DataAry[10]) { + } virtual uint32_t getBlockSize() const override { return 1; } virtual uint32_t getBlockCount() const override { return 10; } |