diff options
author | Zachary Turner <zturner@google.com> | 2016-05-27 18:47:20 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2016-05-27 18:47:20 +0000 |
commit | 1de49c9ffde764550981d5c65eccfe887aa38f08 (patch) | |
tree | eb526b38e36eb5e92b749f47a7296a4635c11f02 /llvm/lib/DebugInfo/PDB/Raw/ModInfo.cpp | |
parent | 6c247c8cc8054c0c4cc18f1d7c21c5fdb8b1d0e3 (diff) | |
download | llvm-1de49c9ffde764550981d5c65eccfe887aa38f08.zip llvm-1de49c9ffde764550981d5c65eccfe887aa38f08.tar.gz llvm-1de49c9ffde764550981d5c65eccfe887aa38f08.tar.bz2 |
Resubmit "[pdb] Allow zero-copy read support for symbol streams.""
Due to differences in template instantiation rules, it is not
portable to static_assert(false) inside of an invalid specialization
of a template. Instead I just =delete the method so that it can't
be used, and leave a comment that it must be explicitly specialized.
llvm-svn: 271027
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/Raw/ModInfo.cpp')
-rw-r--r-- | llvm/lib/DebugInfo/PDB/Raw/ModInfo.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/DebugInfo/PDB/Raw/ModInfo.cpp b/llvm/lib/DebugInfo/PDB/Raw/ModInfo.cpp index 9ccb7ed..67dc81d 100644 --- a/llvm/lib/DebugInfo/PDB/Raw/ModInfo.cpp +++ b/llvm/lib/DebugInfo/PDB/Raw/ModInfo.cpp @@ -67,6 +67,8 @@ struct ModInfo::FileLayout { // Null terminated Obj File Name }; +ModInfo::ModInfo() : Layout(nullptr) {} + ModInfo::ModInfo(codeview::StreamRef Stream) : Layout(nullptr) { codeview::StreamReader Reader(Stream); if (auto EC = Reader.readObject(Layout)) { |