diff options
| author | Zachary Turner <zturner@google.com> | 2016-05-25 20:37:03 +0000 |
|---|---|---|
| committer | Zachary Turner <zturner@google.com> | 2016-05-25 20:37:03 +0000 |
| commit | d5d37dcf8329b7c5774aadc60c4474c8e4a4e55f (patch) | |
| tree | d6b8dde6b19a10110b013544b3288848120add80 /llvm/lib/DebugInfo/PDB/Raw/DbiStream.cpp | |
| parent | 1fe3f1ca50bfc7b1dcc356ee9785bfe3757a8aec (diff) | |
| download | bcm5719-llvm-d5d37dcf8329b7c5774aadc60c4474c8e4a4e55f.tar.gz bcm5719-llvm-d5d37dcf8329b7c5774aadc60c4474c8e4a4e55f.zip | |
[codeview] Move StreamInterface and StreamReader to libcodeview.
We have need to reuse this functionality, including making
additional generic stream types that are smarter about how and
when they copy memory versus referencing the original memory.
So all of these structures belong in the common library
rather than being pdb specific.
llvm-svn: 270751
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/Raw/DbiStream.cpp')
| -rw-r--r-- | llvm/lib/DebugInfo/PDB/Raw/DbiStream.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/DebugInfo/PDB/Raw/DbiStream.cpp b/llvm/lib/DebugInfo/PDB/Raw/DbiStream.cpp index 6b5cd212ed9..078384ebae3 100644 --- a/llvm/lib/DebugInfo/PDB/Raw/DbiStream.cpp +++ b/llvm/lib/DebugInfo/PDB/Raw/DbiStream.cpp @@ -9,13 +9,13 @@ #include "llvm/DebugInfo/PDB/Raw/DbiStream.h" +#include "llvm/DebugInfo/CodeView/StreamReader.h" #include "llvm/DebugInfo/PDB/Raw/InfoStream.h" #include "llvm/DebugInfo/PDB/Raw/ModInfo.h" #include "llvm/DebugInfo/PDB/Raw/NameHashTable.h" #include "llvm/DebugInfo/PDB/Raw/PDBFile.h" #include "llvm/DebugInfo/PDB/Raw/RawConstants.h" #include "llvm/DebugInfo/PDB/Raw/RawError.h" -#include "llvm/DebugInfo/PDB/Raw/StreamReader.h" using namespace llvm; using namespace llvm::pdb; @@ -80,7 +80,7 @@ DbiStream::DbiStream(PDBFile &File) : Pdb(File), Stream(StreamDBI, File) { DbiStream::~DbiStream() {} Error DbiStream::reload() { - StreamReader Reader(Stream); + codeview::StreamReader Reader(Stream); Header.reset(new HeaderInfo()); @@ -170,7 +170,7 @@ Error DbiStream::reload() { return make_error<RawError>(raw_error_code::corrupt_file, "Found unexpected bytes in DBI Stream."); - StreamReader ECReader(ECSubstream); + codeview::StreamReader ECReader(ECSubstream); if (auto EC = ECNames.load(ECReader)) return EC; |

