diff options
author | Zachary Turner <zturner@google.com> | 2016-07-11 21:45:26 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2016-07-11 21:45:26 +0000 |
commit | dbeaea7b357fb4343d01ffa466f3dcab1e57d392 (patch) | |
tree | f1fd778564c5e85b31e96504ee26b49424b00823 /llvm/lib/DebugInfo/PDB/Raw/InfoStream.cpp | |
parent | f6b93824677a9aaab59989f7f402010fda6bd63c (diff) | |
download | llvm-dbeaea7b357fb4343d01ffa466f3dcab1e57d392.zip llvm-dbeaea7b357fb4343d01ffa466f3dcab1e57d392.tar.gz llvm-dbeaea7b357fb4343d01ffa466f3dcab1e57d392.tar.bz2 |
Refactor the PDB writing to use a builder approach
llvm-svn: 275110
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/Raw/InfoStream.cpp')
-rw-r--r-- | llvm/lib/DebugInfo/PDB/Raw/InfoStream.cpp | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/llvm/lib/DebugInfo/PDB/Raw/InfoStream.cpp b/llvm/lib/DebugInfo/PDB/Raw/InfoStream.cpp index 5273118..e2f85ab 100644 --- a/llvm/lib/DebugInfo/PDB/Raw/InfoStream.cpp +++ b/llvm/lib/DebugInfo/PDB/Raw/InfoStream.cpp @@ -21,15 +21,6 @@ using namespace llvm; using namespace llvm::codeview; using namespace llvm::pdb; -namespace { -struct Header { - support::ulittle32_t Version; - support::ulittle32_t Signature; - support::ulittle32_t Age; - PDB_UniqueId Guid; -}; -} - InfoStream::InfoStream(std::unique_ptr<MappedBlockStream> Stream) : Stream(std::move(Stream)) {} @@ -84,16 +75,6 @@ uint32_t InfoStream::getAge() const { return Age; } PDB_UniqueId InfoStream::getGuid() const { return Guid; } -void InfoStream::setVersion(PdbRaw_ImplVer Ver) { - Version = static_cast<uint32_t>(Ver); -} - -void InfoStream::setSignature(uint32_t Sig) { Signature = Sig; } - -void InfoStream::setAge(uint32_t Age) { this->Age = Age; } - -void InfoStream::setGuid(PDB_UniqueId Guid) { this->Guid = Guid; } - Error InfoStream::commit() { StreamWriter Writer(*Stream); @@ -106,4 +87,4 @@ Error InfoStream::commit() { return EC; return NamedStreams.commit(Writer); -} +}
\ No newline at end of file |