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/NameHashTable.cpp | |
parent | 1fe3f1ca50bfc7b1dcc356ee9785bfe3757a8aec (diff) | |
download | llvm-d5d37dcf8329b7c5774aadc60c4474c8e4a4e55f.zip llvm-d5d37dcf8329b7c5774aadc60c4474c8e4a4e55f.tar.gz llvm-d5d37dcf8329b7c5774aadc60c4474c8e4a4e55f.tar.bz2 |
[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/NameHashTable.cpp')
-rw-r--r-- | llvm/lib/DebugInfo/PDB/Raw/NameHashTable.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/DebugInfo/PDB/Raw/NameHashTable.cpp b/llvm/lib/DebugInfo/PDB/Raw/NameHashTable.cpp index 2005c39..a542a51 100644 --- a/llvm/lib/DebugInfo/PDB/Raw/NameHashTable.cpp +++ b/llvm/lib/DebugInfo/PDB/Raw/NameHashTable.cpp @@ -10,9 +10,8 @@ #include "llvm/DebugInfo/PDB/Raw/NameHashTable.h" #include "llvm/ADT/ArrayRef.h" -#include "llvm/DebugInfo/PDB/Raw/ByteStream.h" +#include "llvm/DebugInfo/CodeView/StreamReader.h" #include "llvm/DebugInfo/PDB/Raw/RawError.h" -#include "llvm/DebugInfo/PDB/Raw/StreamReader.h" #include "llvm/Support/Endian.h" using namespace llvm; @@ -78,7 +77,7 @@ static inline uint32_t HashStringV2(StringRef Str) { NameHashTable::NameHashTable() : Signature(0), HashVersion(0), NameCount(0) {} -Error NameHashTable::load(StreamReader &Stream) { +Error NameHashTable::load(codeview::StreamReader &Stream) { struct Header { support::ulittle32_t Signature; support::ulittle32_t HashVersion; |