Skip to content

Commit

Permalink
FileOutputBuffer.h - remove unused includes. NFC.
Browse files Browse the repository at this point in the history
Move dependent includes down to source files where necessary.
  • Loading branch information
RKSimon committed May 28, 2020
1 parent 1a94575 commit f6417f5
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
1 change: 1 addition & 0 deletions lld/Common/Strings.cpp
Expand Up @@ -10,6 +10,7 @@
#include "lld/Common/ErrorHandler.h"
#include "lld/Common/LLVM.h"
#include "llvm/Demangle/Demangle.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/GlobPattern.h"
#include <algorithm>
#include <mutex>
Expand Down
2 changes: 0 additions & 2 deletions llvm/include/llvm/Support/FileOutputBuffer.h
Expand Up @@ -13,11 +13,9 @@
#ifndef LLVM_SUPPORT_FILEOUTPUTBUFFER_H
#define LLVM_SUPPORT_FILEOUTPUTBUFFER_H

#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/DataTypes.h"
#include "llvm/Support/Error.h"
#include "llvm/Support/FileSystem.h"

namespace llvm {
/// FileOutputBuffer - This interface provides simple way to create an in-memory
Expand Down
3 changes: 1 addition & 2 deletions llvm/lib/DebugInfo/PDB/Native/PDBFileBuilder.cpp
Expand Up @@ -7,9 +7,7 @@
//===----------------------------------------------------------------------===//

#include "llvm/DebugInfo/PDB/Native/PDBFileBuilder.h"

#include "llvm/ADT/BitVector.h"

#include "llvm/DebugInfo/MSF/MSFBuilder.h"
#include "llvm/DebugInfo/PDB/Native/DbiStream.h"
#include "llvm/DebugInfo/PDB/Native/DbiStreamBuilder.h"
Expand All @@ -23,6 +21,7 @@
#include "llvm/Support/BinaryStream.h"
#include "llvm/Support/BinaryStreamWriter.h"
#include "llvm/Support/CRC.h"
#include "llvm/Support/Chrono.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/xxhash.h"

Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Support/FileOutputBuffer.cpp
Expand Up @@ -12,8 +12,8 @@

#include "llvm/Support/FileOutputBuffer.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/Support/Errc.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/Memory.h"
#include "llvm/Support/Path.h"
#include <system_error>
Expand Down

0 comments on commit f6417f5

Please sign in to comment.