diff options
author | Zachary Turner <zturner@google.com> | 2016-07-22 19:56:33 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2016-07-22 19:56:33 +0000 |
commit | e4a4f33daf7f05a058d7d72e5a3019f1194b597b (patch) | |
tree | 9bb5e2c30ecb64a9e8e88883080eb1621c09c76a /llvm/lib/DebugInfo/PDB/Raw/PDBFileBuilder.cpp | |
parent | e109dc63f95eae32772335d131935b073594a7ce (diff) | |
download | llvm-e4a4f33daf7f05a058d7d72e5a3019f1194b597b.zip llvm-e4a4f33daf7f05a058d7d72e5a3019f1194b597b.tar.gz llvm-e4a4f33daf7f05a058d7d72e5a3019f1194b597b.tar.bz2 |
Make PDBFile store an msf::Layout.
Previously it was storing all the fields of an msf::Layout as
separate members. This is a trivial cleanup to make it store
an msf::Layout directly. This makes the code more readable
since it becomes clear which fields of PDBFile are actually the
msf specific layout information in a sea of other bookkeeping
fields.
llvm-svn: 276460
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/Raw/PDBFileBuilder.cpp')
-rw-r--r-- | llvm/lib/DebugInfo/PDB/Raw/PDBFileBuilder.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/llvm/lib/DebugInfo/PDB/Raw/PDBFileBuilder.cpp b/llvm/lib/DebugInfo/PDB/Raw/PDBFileBuilder.cpp index 6312cc2..49bcb2f 100644 --- a/llvm/lib/DebugInfo/PDB/Raw/PDBFileBuilder.cpp +++ b/llvm/lib/DebugInfo/PDB/Raw/PDBFileBuilder.cpp @@ -76,11 +76,7 @@ PDBFileBuilder::build(std::unique_ptr<msf::StreamInterface> PdbFileBuffer) { return ExpectedLayout.takeError(); auto File = llvm::make_unique<PDBFile>(std::move(PdbFileBuffer), Allocator); - const msf::Layout &L = *ExpectedLayout; - File->StreamMap = L.StreamMap; - File->StreamSizes = L.StreamSizes; - File->DirectoryBlocks = L.DirectoryBlocks; - File->SB = L.SB; + File->MsfLayout = *ExpectedLayout; if (Info) { auto ExpectedInfo = Info->build(*File); |