diff options
author | Zachary Turner <zturner@google.com> | 2016-07-15 20:43:38 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2016-07-15 20:43:38 +0000 |
commit | f52a899f4aedc5770c5af0a2343bfd1e50385400 (patch) | |
tree | f163389cc1c44dc0b72c8b300a27b6450bb316cb /llvm/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp | |
parent | 511f2e5a8955c90d6b9c176c31af2ec3add395fa (diff) | |
download | bcm5719-llvm-f52a899f4aedc5770c5af0a2343bfd1e50385400.tar.gz bcm5719-llvm-f52a899f4aedc5770c5af0a2343bfd1e50385400.zip |
[pdb] Introduce MsfBuilder for laying out PDB files.
Reviewed by: ruiu
Differential Revision: https://reviews.llvm.org/D22308
llvm-svn: 275611
Diffstat (limited to 'llvm/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp')
-rw-r--r-- | llvm/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/llvm/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp b/llvm/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp index dd6fce23736..6f9e86c4f26 100644 --- a/llvm/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp +++ b/llvm/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp @@ -7,7 +7,7 @@ // //===----------------------------------------------------------------------===// -#include <unordered_map> +#include "ErrorChecking.h" #include "llvm/DebugInfo/CodeView/ByteStream.h" #include "llvm/DebugInfo/CodeView/StreamReader.h" @@ -19,28 +19,14 @@ #include "llvm/DebugInfo/PDB/Raw/MappedBlockStream.h" #include "gtest/gtest.h" +#include <unordered_map> + using namespace llvm; using namespace llvm::codeview; using namespace llvm::pdb; namespace { -#define EXPECT_NO_ERROR(Err) \ - { \ - auto E = Err; \ - EXPECT_FALSE(static_cast<bool>(E)); \ - if (E) \ - consumeError(std::move(E)); \ - } - -#define EXPECT_ERROR(Err) \ - { \ - auto E = Err; \ - EXPECT_TRUE(static_cast<bool>(E)); \ - if (E) \ - consumeError(std::move(E)); \ - } - static const uint32_t BlocksAry[] = {0, 1, 2, 5, 4, 3, 6, 7, 8, 9}; static uint8_t DataAry[] = {'A', 'B', 'C', 'F', 'E', 'D', 'G', 'H', 'I', 'J'}; |