diff options
author | Eugene Zelenko <eugene.zelenko@gmail.com> | 2016-11-23 23:16:32 +0000 |
---|---|---|
committer | Eugene Zelenko <eugene.zelenko@gmail.com> | 2016-11-23 23:16:32 +0000 |
commit | 570e39a25ca345e3facaea16b2facefddfb3aa92 (patch) | |
tree | 04b12c1516d05fbbcd6883f4579a9a62eb8d45be /llvm/lib/DebugInfo/PDB/Raw/GlobalsStream.cpp | |
parent | bf9523f549cc28c9c9836fa9442db86ba4657433 (diff) | |
download | bcm5719-llvm-570e39a25ca345e3facaea16b2facefddfb3aa92.tar.gz bcm5719-llvm-570e39a25ca345e3facaea16b2facefddfb3aa92.zip |
[DebugInfo] Fix some Clang-tidy modernize-use-default and Include What You Use warnings; other minor fixes (NFC).
Per Zachary Turner and Mehdi Amini suggestion to make only post-commit reviews.
llvm-svn: 287838
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/Raw/GlobalsStream.cpp')
-rw-r--r-- | llvm/lib/DebugInfo/PDB/Raw/GlobalsStream.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/llvm/lib/DebugInfo/PDB/Raw/GlobalsStream.cpp b/llvm/lib/DebugInfo/PDB/Raw/GlobalsStream.cpp index c5184525d62..31afc9200b1 100644 --- a/llvm/lib/DebugInfo/PDB/Raw/GlobalsStream.cpp +++ b/llvm/lib/DebugInfo/PDB/Raw/GlobalsStream.cpp @@ -7,15 +7,11 @@ // //===----------------------------------------------------------------------===// -#include "llvm/DebugInfo/PDB/Raw/GlobalsStream.h" - #include "GSI.h" -#include "llvm/DebugInfo/PDB/Raw/PDBFile.h" -#include "llvm/DebugInfo/PDB/Raw/RawError.h" -#include "llvm/DebugInfo/PDB/Raw/RawTypes.h" - -#include "llvm/Support/Endian.h" +#include "llvm/DebugInfo/MSF/StreamReader.h" +#include "llvm/DebugInfo/PDB/Raw/GlobalsStream.h" #include "llvm/Support/Error.h" +#include <algorithm> using namespace llvm; using namespace llvm::msf; @@ -24,7 +20,7 @@ using namespace llvm::pdb; GlobalsStream::GlobalsStream(std::unique_ptr<MappedBlockStream> Stream) : Stream(std::move(Stream)) {} -GlobalsStream::~GlobalsStream() {} +GlobalsStream::~GlobalsStream() = default; Error GlobalsStream::reload() { StreamReader Reader(*Stream); |