[PATCH] D44509: Remove unnecessary includes from lld/ELF

Yuka Takahashi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 15 01:42:36 PDT 2018


yamaguchi created this revision.
yamaguchi added a reviewer: rafael.
Herald added subscribers: arichardson, emaste.

These includes are already included in somewhere above the include tree,

  so we don't have to include them here.


Repository:
  rL LLVM

https://reviews.llvm.org/D44509

Files:
  lld/ELF/Driver.cpp
  lld/ELF/InputSection.cpp
  lld/ELF/LTO.cpp
  lld/ELF/LinkerScript.cpp
  lld/ELF/MarkLive.cpp
  lld/ELF/ScriptParser.cpp
  lld/ELF/Thunks.cpp


Index: lld/ELF/Thunks.cpp
===================================================================
--- lld/ELF/Thunks.cpp
+++ lld/ELF/Thunks.cpp
@@ -36,7 +36,6 @@
 #include "llvm/Support/ErrorHandling.h"
 #include "llvm/Support/MathExtras.h"
 #include <cstdint>
-#include <cstring>
 
 using namespace llvm;
 using namespace llvm::object;
Index: lld/ELF/ScriptParser.cpp
===================================================================
--- lld/ELF/ScriptParser.cpp
+++ lld/ELF/ScriptParser.cpp
@@ -33,7 +33,6 @@
 #include "llvm/Support/Path.h"
 #include <cassert>
 #include <limits>
-#include <vector>
 
 using namespace llvm;
 using namespace llvm::ELF;
Index: lld/ELF/MarkLive.cpp
===================================================================
--- lld/ELF/MarkLive.cpp
+++ lld/ELF/MarkLive.cpp
@@ -32,7 +32,6 @@
 #include "llvm/ADT/STLExtras.h"
 #include "llvm/Object/ELF.h"
 #include <functional>
-#include <vector>
 
 using namespace llvm;
 using namespace llvm::ELF;
Index: lld/ELF/LinkerScript.cpp
===================================================================
--- lld/ELF/LinkerScript.cpp
+++ lld/ELF/LinkerScript.cpp
@@ -31,13 +31,6 @@
 #include "llvm/Support/ErrorHandling.h"
 #include "llvm/Support/FileSystem.h"
 #include "llvm/Support/Path.h"
-#include <algorithm>
-#include <cassert>
-#include <cstddef>
-#include <cstdint>
-#include <iterator>
-#include <limits>
-#include <string>
 #include <vector>
 
 using namespace llvm;
Index: lld/ELF/LTO.cpp
===================================================================
--- lld/ELF/LTO.cpp
+++ lld/ELF/LTO.cpp
@@ -30,12 +30,6 @@
 #include "llvm/Support/FileSystem.h"
 #include "llvm/Support/MemoryBuffer.h"
 #include "llvm/Support/raw_ostream.h"
-#include <algorithm>
-#include <cstddef>
-#include <memory>
-#include <string>
-#include <system_error>
-#include <vector>
 
 using namespace llvm;
 using namespace llvm::object;
Index: lld/ELF/InputSection.cpp
===================================================================
--- lld/ELF/InputSection.cpp
+++ lld/ELF/InputSection.cpp
@@ -26,7 +26,6 @@
 #include "llvm/Support/Endian.h"
 #include "llvm/Support/Threading.h"
 #include "llvm/Support/xxhash.h"
-#include <mutex>
 
 using namespace llvm;
 using namespace llvm::ELF;
Index: lld/ELF/Driver.cpp
===================================================================
--- lld/ELF/Driver.cpp
+++ lld/ELF/Driver.cpp
@@ -56,7 +56,6 @@
 #include "llvm/Support/TargetSelect.h"
 #include "llvm/Support/raw_ostream.h"
 #include <cstdlib>
-#include <utility>
 
 using namespace llvm;
 using namespace llvm::ELF;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44509.138503.patch
Type: text/x-patch
Size: 2576 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180315/1e84d0f9/attachment.bin>


More information about the llvm-commits mailing list