[lld] f6417f5 - FileOutputBuffer.h - remove unused includes. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Thu May 28 06:38:32 PDT 2020
Author: Simon Pilgrim
Date: 2020-05-28T14:38:12+01:00
New Revision: f6417f5db8c16286904d074d1e40e9c1eb083951
URL: https://github.com/llvm/llvm-project/commit/f6417f5db8c16286904d074d1e40e9c1eb083951
DIFF: https://github.com/llvm/llvm-project/commit/f6417f5db8c16286904d074d1e40e9c1eb083951.diff
LOG: FileOutputBuffer.h - remove unused includes. NFC.
Move dependent includes down to source files where necessary.
Added:
Modified:
lld/Common/Strings.cpp
llvm/include/llvm/Support/FileOutputBuffer.h
llvm/lib/DebugInfo/PDB/Native/PDBFileBuilder.cpp
llvm/lib/Support/FileOutputBuffer.cpp
Removed:
################################################################################
diff --git a/lld/Common/Strings.cpp b/lld/Common/Strings.cpp
index 605d9de685ed..17c2c207491f 100644
--- a/lld/Common/Strings.cpp
+++ b/lld/Common/Strings.cpp
@@ -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>
diff --git a/llvm/include/llvm/Support/FileOutputBuffer.h b/llvm/include/llvm/Support/FileOutputBuffer.h
index bdc1425d4361..8eb36d0034ad 100644
--- a/llvm/include/llvm/Support/FileOutputBuffer.h
+++ b/llvm/include/llvm/Support/FileOutputBuffer.h
@@ -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
diff --git a/llvm/lib/DebugInfo/PDB/Native/PDBFileBuilder.cpp b/llvm/lib/DebugInfo/PDB/Native/PDBFileBuilder.cpp
index d6a187ebb9f6..deb0f201a71e 100644
--- a/llvm/lib/DebugInfo/PDB/Native/PDBFileBuilder.cpp
+++ b/llvm/lib/DebugInfo/PDB/Native/PDBFileBuilder.cpp
@@ -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"
@@ -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"
diff --git a/llvm/lib/Support/FileOutputBuffer.cpp b/llvm/lib/Support/FileOutputBuffer.cpp
index ec12820e9692..3342682270dc 100644
--- a/llvm/lib/Support/FileOutputBuffer.cpp
+++ b/llvm/lib/Support/FileOutputBuffer.cpp
@@ -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>
More information about the llvm-commits
mailing list