Purge unused includes throughout libSupport.
authorBenjamin Kramer <benny.kra@googlemail.com>
Mon, 23 Mar 2015 18:07:13 +0000 (18:07 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Mon, 23 Mar 2015 18:07:13 +0000 (18:07 +0000)
NFC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232976 91177308-0d34-0410-b5e6-96231b3b80d8

64 files changed:
include/llvm/ADT/APFloat.h
include/llvm/ADT/APInt.h
include/llvm/ADT/FoldingSet.h
include/llvm/ADT/IntrusiveRefCntPtr.h
include/llvm/Bitcode/BitstreamReader.h
include/llvm/Support/Compression.h
include/llvm/Support/CrashRecoveryContext.h
include/llvm/Support/DataExtractor.h
include/llvm/Support/Debug.h
include/llvm/Support/GraphWriter.h
include/llvm/Support/MemoryBuffer.h
include/llvm/Support/Program.h
include/llvm/Support/Regex.h
include/llvm/Support/Signals.h
include/llvm/Support/StreamingMemoryObject.h
include/llvm/Support/StringPool.h
include/llvm/Support/SystemUtils.h
include/llvm/Support/TargetRegistry.h
include/llvm/Support/Timer.h
include/llvm/Support/YAMLParser.h
include/llvm/Support/raw_ostream.h
lib/Analysis/BranchProbabilityInfo.cpp
lib/Analysis/LoopPass.cpp
lib/CodeGen/AsmPrinter/DbgValueHistoryCalculator.cpp
lib/DebugInfo/DWARF/DWARFDebugFrame.cpp
lib/Support/Allocator.cpp
lib/Support/CommandLine.cpp
lib/Support/Compression.cpp
lib/Support/CrashRecoveryContext.cpp
lib/Support/DataStream.cpp
lib/Support/FileOutputBuffer.cpp
lib/Support/GraphWriter.cpp
lib/Support/LockFileManager.cpp
lib/Support/MemoryBuffer.cpp
lib/Support/Path.cpp
lib/Support/Process.cpp
lib/Support/Program.cpp
lib/Support/Regex.cpp
lib/Support/ScaledNumber.cpp
lib/Support/SourceMgr.cpp
lib/Support/SpecialCaseList.cpp
lib/Support/StreamingMemoryObject.cpp
lib/Support/StringExtras.cpp
lib/Support/SystemUtils.cpp
lib/Support/TargetRegistry.cpp
lib/Support/Timer.cpp
lib/Support/Unix/Program.inc
lib/Support/YAMLParser.cpp
lib/Support/YAMLTraits.cpp
lib/Target/AArch64/AArch64A53Fix835769.cpp
lib/Target/ARM/Thumb2SizeReduction.cpp
lib/Target/Mips/Mips16HardFloat.cpp
lib/Target/Mips/MipsModuleISelDAGToDAG.cpp
lib/Target/R600/AMDGPUPromoteAlloca.cpp
lib/Target/R600/SIShrinkInstructions.cpp
lib/Transforms/Utils/SymbolRewriter.cpp
tools/lli/RemoteMemoryManager.cpp
tools/lli/lli.cpp
tools/llvm-ar/llvm-ar.cpp
tools/llvm-cxxdump/llvm-cxxdump.cpp
tools/llvm-profdata/llvm-profdata.cpp
tools/llvm-symbolizer/llvm-symbolizer.cpp
tools/verify-uselistorder/verify-uselistorder.cpp
unittests/DebugInfo/DWARF/DWARFFormValueTest.cpp

index bf814e00b16c8babdcbff40e5d942d56e27f6009..53b53c5dfa546df940a2a003028b23c3db68e4dd 100644 (file)
@@ -282,12 +282,6 @@ public:
   /// into FoldingSets.
   void Profile(FoldingSetNodeID &NID) const;
 
-  /// \brief Used by the Bitcode serializer to emit APInts to Bitcode.
-  void Emit(Serializer &S) const;
-
-  /// \brief Used by the Bitcode deserializer to deserialize APInts.
-  static APFloat ReadVal(Deserializer &D);
-
   /// \name Arithmetic
   /// @{
 
index c2fe09478a33c1914761f9bbdf2fcf21da3907dd..838c59dd617bf8a5c26f584afcef7fc76c9a67d5 100644 (file)
@@ -25,9 +25,7 @@
 #include <string>
 
 namespace llvm {
-class Deserializer;
 class FoldingSetNodeID;
-class Serializer;
 class StringRef;
 class hash_code;
 class raw_ostream;
index 278e43e3e74c8dcb03f0621b599fbe8ba61509a0..52d10c1c1245814e42b31854cd3ea81e6e33132a 100644 (file)
@@ -23,9 +23,6 @@
 #include "llvm/Support/DataTypes.h"
 
 namespace llvm {
-  class APFloat;
-  class APInt;
-
 /// This folding set used for two purposes:
 ///   1. Given information about a node we want to create, look up the unique
 ///      instance of the node in the set.  If the node already exists, return
index 9b12d048a8b226eca0d449ce03b6aa311ed24e0d..65b2da793d7c8491aa6e3f31bad3e4e6f58ac72f 100644 (file)
 #ifndef LLVM_ADT_INTRUSIVEREFCNTPTR_H
 #define LLVM_ADT_INTRUSIVEREFCNTPTR_H
 
-#include "llvm/Support/Casting.h"
-#include "llvm/Support/Compiler.h"
 #include <atomic>
-#include <memory>
+#include <cassert>
+#include <cstddef>
 
 namespace llvm {
 
@@ -268,6 +267,8 @@ public:
 // LLVM-style downcasting support for IntrusiveRefCntPtr objects
 //===----------------------------------------------------------------------===//
 
+  template <typename From> struct simplify_type;
+
   template<class T> struct simplify_type<IntrusiveRefCntPtr<T> > {
     typedef T* SimpleType;
     static SimpleType getSimplifiedValue(IntrusiveRefCntPtr<T>& Val) {
index c20a1601b2776219bb02c776cdf9a1c862d45a04..18f6b9e011e0e4fbd83cb3d1883b765473273ec0 100644 (file)
@@ -24,8 +24,6 @@
 
 namespace llvm {
 
-class Deserializer;
-
 /// This class is used to read from an LLVM bitcode stream, maintaining
 /// information that is global to decoding the entire file. While a file is
 /// being read, multiple cursors can be independently advanced or skipped around
@@ -164,7 +162,6 @@ struct BitstreamEntry {
 /// Unlike iterators, BitstreamCursors are heavy-weight objects that should not
 /// be passed by value.
 class BitstreamCursor {
-  friend class Deserializer;
   BitstreamReader *BitStream;
   size_t NextChar;
 
index 88727fa3fcfcc8fe711341ebd53a665b01f4e0e6..28274d67aad20c502ce2562a413260ce427b8ac2 100644 (file)
 #ifndef LLVM_SUPPORT_COMPRESSION_H
 #define LLVM_SUPPORT_COMPRESSION_H
 
-#include "llvm/ADT/SmallVector.h"
 #include "llvm/Support/DataTypes.h"
-#include <memory>
 
 namespace llvm {
-
+template <typename T> class SmallVectorImpl;
 class StringRef;
 
 namespace zlib {
index 1f3965c8ade4a8e188b3fb782a87a594845397fd..c08c3c1f0d2156de6e1994638e4bece66a98e2f5 100644 (file)
@@ -14,8 +14,6 @@
 #include <string>
 
 namespace llvm {
-class StringRef;
-
 class CrashRecoveryContextCleanup;
 
 /// \brief Crash recovery helper object.
index 48235d4145bd10a18685bfadb8684acdbdb35b74..3ffa9bc90dd10c0b9c09b980dac6d2dc2618bc3d 100644 (file)
@@ -10,7 +10,6 @@
 #ifndef LLVM_SUPPORT_DATAEXTRACTOR_H
 #define LLVM_SUPPORT_DATAEXTRACTOR_H
 
-#include "llvm/ADT/DenseMap.h"
 #include "llvm/ADT/StringRef.h"
 #include "llvm/Support/DataTypes.h"
 
index e93e6ca34498bd95f4ccaefac2506208db88a382..fff4f986a6c04dcb4938ddb285c97c650319ef7b 100644 (file)
@@ -28,9 +28,8 @@
 #ifndef LLVM_SUPPORT_DEBUG_H
 #define LLVM_SUPPORT_DEBUG_H
 
-#include "llvm/Support/raw_ostream.h"
-
 namespace llvm {
+class raw_ostream;
 
 #ifndef NDEBUG
 /// DebugFlag - This boolean is set to true if the '-debug' command line option
index 2f02aa7a1c19ade821014e0a78f2cbc748572f09..7d1c273c988d1c039f84066932bf6f477b36c370 100644 (file)
 #define LLVM_SUPPORT_GRAPHWRITER_H
 
 #include "llvm/ADT/GraphTraits.h"
+#include "llvm/ADT/Twine.h"
 #include "llvm/Support/DOTGraphTraits.h"
-#include "llvm/Support/Path.h"
 #include "llvm/Support/raw_ostream.h"
-#include <cassert>
 #include <vector>
 
 namespace llvm {
index cc65ca563b3e7f8fd83d8f20dc6b03da7a7cfbc6..35a7bdb004a97d6b6867ddfa777299ba29876d79 100644 (file)
 #include "llvm-c/Support.h"
 #include "llvm/ADT/Twine.h"
 #include "llvm/Support/CBindingWrapping.h"
-#include "llvm/Support/Compiler.h"
 #include "llvm/Support/DataTypes.h"
 #include "llvm/Support/ErrorOr.h"
 #include <memory>
-#include <system_error>
 
 namespace llvm {
 class MemoryBufferRef;
index 40dc60fa30d6c4d91b43c10e723578e9fae46d12..b89a0f73ec681e491f3b7cd9fdf4dd833eeff402 100644 (file)
 
 #include "llvm/ADT/ArrayRef.h"
 #include "llvm/Support/ErrorOr.h"
-#include "llvm/Support/Path.h"
 #include <system_error>
 
 namespace llvm {
+class StringRef;
+
 namespace sys {
 
   /// This is the OS-specific separator for PATH like environment variables:
index 5e5a5a335f9a9fbb2aab42d24938bc3bfb2800c6..31b35ed0cad61f86712bb30b1f0a60559d6c7ea6 100644 (file)
@@ -17,7 +17,6 @@
 #ifndef LLVM_SUPPORT_REGEX_H
 #define LLVM_SUPPORT_REGEX_H
 
-#include "llvm/Support/Compiler.h"
 #include <string>
 
 struct llvm_regex;
index f9b88fc18f4ffac93ae65bdc9c0db74317b59b51..a067b136550a705a93e9b64a640ccb7adf643cd4 100644 (file)
 #ifndef LLVM_SUPPORT_SIGNALS_H
 #define LLVM_SUPPORT_SIGNALS_H
 
-#include "llvm/Support/Path.h"
-#include <cstdio>
+#include <string>
 
 namespace llvm {
-  class raw_ostream;
+class StringRef;
+class raw_ostream;
 
 namespace sys {
 
index f914817c8cdb160d096fa55224dc031c8c3d6804..fb63da7dbccb8051394acc427cf2bed3d33b9159 100644 (file)
@@ -14,7 +14,6 @@
 #include "llvm/Support/DataStream.h"
 #include "llvm/Support/ErrorHandling.h"
 #include "llvm/Support/MemoryObject.h"
-#include <cassert>
 #include <memory>
 #include <vector>
 
index 675adde043293ed5148635fc230c7d22dbd7e698..2ec0c3b76c11f13557ee5f810baa46a3bf7d512d 100644 (file)
@@ -30,9 +30,7 @@
 #define LLVM_SUPPORT_STRINGPOOL_H
 
 #include "llvm/ADT/StringMap.h"
-#include "llvm/Support/Compiler.h"
 #include <cassert>
-#include <new>
 
 namespace llvm {
 
index d2d08b234272d3a3fd7166a5018fb7e3adbe3d29..2997b1b0c9cf2e2711fb73af506bf39747f917bc 100644 (file)
@@ -15,8 +15,6 @@
 #ifndef LLVM_SUPPORT_SYSTEMUTILS_H
 #define LLVM_SUPPORT_SYSTEMUTILS_H
 
-#include <string>
-
 namespace llvm {
   class raw_ostream;
 
index 26134e4eecb79f944cd436e3cf449884227a9197..ba6bbde131d45f27395650fb37039a8ab63dcc88 100644 (file)
@@ -28,8 +28,6 @@
 
 namespace llvm {
   class AsmPrinter;
-  class Module;
-  class MCAssembler;
   class MCAsmBackend;
   class MCAsmInfo;
   class MCAsmParser;
index 442b36135a9225d065c698e8820c90c27a75e5a5..2cd30e2aaf32221555c5a0d5d0c8a5e5a0bd6250 100644 (file)
@@ -11,7 +11,6 @@
 #define LLVM_SUPPORT_TIMER_H
 
 #include "llvm/ADT/StringRef.h"
-#include "llvm/Support/Compiler.h"
 #include "llvm/Support/DataTypes.h"
 #include <cassert>
 #include <string>
index de6e6544e25b9f5022a459c805b9fa482c8d6e0c..3d423293b2749d8f1c0f6b434e0acd05de0ac14d 100644 (file)
 #ifndef LLVM_SUPPORT_YAMLPARSER_H
 #define LLVM_SUPPORT_YAMLPARSER_H
 
-#include "llvm/ADT/SmallString.h"
 #include "llvm/ADT/StringRef.h"
 #include "llvm/Support/Allocator.h"
-#include "llvm/Support/MemoryBuffer.h"
 #include "llvm/Support/SMLoc.h"
 #include <limits>
 #include <map>
 #include <utility>
 
 namespace llvm {
+class MemoryBufferRef;
 class SourceMgr;
-class raw_ostream;
 class Twine;
+class raw_ostream;
 
 namespace yaml {
 
index 8f035ebbdcd9bda20a5fd9a6e0013f540c3ccfd1..12783c71a264d7907f3462ff304ecc0b771ab212 100644 (file)
@@ -16,7 +16,6 @@
 
 #include "llvm/ADT/SmallVector.h"
 #include "llvm/ADT/StringRef.h"
-#include "llvm/Support/Compiler.h"
 #include "llvm/Support/DataTypes.h"
 #include <system_error>
 
index 8cd6ea46d3c57e6ae7142995b6001bd3565a334e..14800f4a28bfb3333e420c8db2243d1fd194b804 100644 (file)
@@ -21,6 +21,7 @@
 #include "llvm/IR/LLVMContext.h"
 #include "llvm/IR/Metadata.h"
 #include "llvm/Support/Debug.h"
+#include "llvm/Support/raw_ostream.h"
 
 using namespace llvm;
 
index a99c949e10f759bda04a127a78a8a5f818203644..e9fcf02118b978351e322c3932b89f9e4f8227a8 100644 (file)
@@ -18,6 +18,7 @@
 #include "llvm/IR/LLVMContext.h"
 #include "llvm/Support/Debug.h"
 #include "llvm/Support/Timer.h"
+#include "llvm/Support/raw_ostream.h"
 using namespace llvm;
 
 #define DEBUG_TYPE "loop-pass-manager"
index 0c2a5e551ad07109cd8739bd2c4f3f34146bcfa2..bbdf2378f6ea0bd88150e089fde962bbabaa0087 100644 (file)
@@ -14,6 +14,7 @@
 #include "llvm/CodeGen/MachineFunction.h"
 #include "llvm/IR/DebugInfo.h"
 #include "llvm/Support/Debug.h"
+#include "llvm/Support/raw_ostream.h"
 #include "llvm/Target/TargetRegisterInfo.h"
 #include <algorithm>
 #include <map>
index 7d772901e7f41f3b6975e59096594318c720e929..9f5621414f20ec5f812089868881e7b188110599 100644 (file)
@@ -9,6 +9,7 @@
 
 #include "llvm/DebugInfo/DWARF/DWARFDebugFrame.h"
 #include "llvm/ADT/ArrayRef.h"
+#include "llvm/ADT/DenseMap.h"
 #include "llvm/ADT/SmallString.h"
 #include "llvm/Support/Casting.h"
 #include "llvm/Support/DataTypes.h"
index 7c306b2370e6c30fc3e03ee6dd2ac697c228a42e..f48edac0598ce13ece81ec075fbfbb9b0ca35a10 100644 (file)
 //===----------------------------------------------------------------------===//
 
 #include "llvm/Support/Allocator.h"
-#include "llvm/Support/Compiler.h"
-#include "llvm/Support/DataTypes.h"
-#include "llvm/Support/Memory.h"
-#include "llvm/Support/Recycler.h"
 #include "llvm/Support/raw_ostream.h"
-#include <cstring>
 
 namespace llvm {
 
index 7e594409b82185d3b2df347ab781dee6000ce150..af6c6056f18344d18879f36e2d21352adc6747d0 100644 (file)
 #include "llvm/Support/MemoryBuffer.h"
 #include "llvm/Support/Path.h"
 #include "llvm/Support/raw_ostream.h"
-#include <cerrno>
 #include <cstdlib>
 #include <map>
-#include <system_error>
 using namespace llvm;
 using namespace cl;
 
index 17ae2957d12f2f3b4a774cf2940edc42120dd235..b54613e92b8b6ba3bf8cb2e2816745b6d909244b 100644 (file)
@@ -12,6 +12,7 @@
 //===----------------------------------------------------------------------===//
 
 #include "llvm/Support/Compression.h"
+#include "llvm/ADT/SmallVector.h"
 #include "llvm/ADT/StringRef.h"
 #include "llvm/Config/config.h"
 #include "llvm/Support/Compiler.h"
index 9b0e44339d8411dddf387fcb3afabc7141b1a315..aba0f1ddeee86c4ada53494ba6909a34be887f43 100644 (file)
@@ -8,13 +8,11 @@
 //===----------------------------------------------------------------------===//
 
 #include "llvm/Support/CrashRecoveryContext.h"
-#include "llvm/ADT/SmallString.h"
 #include "llvm/Config/config.h"
 #include "llvm/Support/ErrorHandling.h"
 #include "llvm/Support/ManagedStatic.h"
 #include "llvm/Support/Mutex.h"
 #include "llvm/Support/ThreadLocal.h"
-#include <cstdio>
 #include <setjmp.h>
 using namespace llvm;
 
index dbf6465189decd9a084654b7474b11af0397a386..a44b95804c7ae595c120a610a37e26ae6b447217 100644 (file)
@@ -18,8 +18,6 @@
 #include "llvm/ADT/Statistic.h"
 #include "llvm/Support/FileSystem.h"
 #include "llvm/Support/Program.h"
-#include <cerrno>
-#include <cstdio>
 #include <string>
 #include <system_error>
 #if !defined(_MSC_VER) && !defined(__MINGW32__)
index a35e160b2a1ba0c02efacabfd01abd53e7b8b7c0..307ff09afedc1a350e18dce03dec155902e26c02 100644 (file)
 //
 //===----------------------------------------------------------------------===//
 
-#include "llvm/Support/Errc.h"
-#include "llvm/ADT/STLExtras.h"
-#include "llvm/ADT/SmallVector.h"
 #include "llvm/Support/FileOutputBuffer.h"
-#include "llvm/Support/raw_ostream.h"
+#include "llvm/ADT/STLExtras.h"
+#include "llvm/ADT/SmallString.h"
+#include "llvm/Support/Errc.h"
 #include <system_error>
 
 #if !defined(_MSC_VER) && !defined(__MINGW32__)
index c0b5513d5a15721657c2dada8dadf962eeabd26e..fd4ce54838bcbd1e90465cc174ef2b24d29d886d 100644 (file)
@@ -15,7 +15,6 @@
 #include "llvm/Config/config.h"
 #include "llvm/Support/CommandLine.h"
 #include "llvm/Support/FileSystem.h"
-#include "llvm/Support/Path.h"
 #include "llvm/Support/Program.h"
 using namespace llvm;
 
index a6c17d4e587a84caad8a8d5e25ddf81cd0da4ffe..d07c5f0f682f447736c91f2025a02c35847fcace 100644 (file)
@@ -7,12 +7,10 @@
 //
 //===----------------------------------------------------------------------===//
 #include "llvm/Support/LockFileManager.h"
-#include "llvm/ADT/STLExtras.h"
 #include "llvm/ADT/StringExtras.h"
 #include "llvm/Support/Errc.h"
 #include "llvm/Support/FileSystem.h"
 #include "llvm/Support/MemoryBuffer.h"
-#include "llvm/Support/Path.h"
 #include "llvm/Support/raw_ostream.h"
 #include <sys/stat.h>
 #include <sys/types.h>
index 379db8811d4de3e4eb7edbe1697cf3d2ccb9feae..98862e96b74923bb930f741d7a9074db8582cdcf 100644 (file)
@@ -23,7 +23,6 @@
 #include "llvm/Support/Program.h"
 #include <cassert>
 #include <cerrno>
-#include <cstdio>
 #include <cstring>
 #include <new>
 #include <sys/types.h>
index 6871b21c953e0a8e31dba32e304a34b63cb2317f..cf467381db8c47315f58aeb82e74a681fafccc29 100644 (file)
@@ -19,9 +19,7 @@
 #include "llvm/Support/Path.h"
 #include "llvm/Support/Process.h"
 #include <cctype>
-#include <cstdio>
 #include <cstring>
-#include <fcntl.h>
 
 #if !defined(_MSC_VER) && !defined(__MINGW32__)
 #include <unistd.h>
index ad67e1b10b48b95241a1bcd42f4118f47995e57a..d0c1748757d4e43d9dc675f7211ad56bf108aa62 100644 (file)
@@ -13,8 +13,8 @@
 
 #include "llvm/ADT/StringExtras.h"
 #include "llvm/Config/config.h"
-#include "llvm/Support/ErrorHandling.h"
 #include "llvm/Support/FileSystem.h"
+#include "llvm/Support/Path.h"
 #include "llvm/Support/Process.h"
 #include "llvm/Support/Program.h"
 
index b84b82b1f10bae8e344cbe6e5679f882dddbec5f..34e336b354d660b7343bd12560211390b5e950f1 100644 (file)
@@ -12,6 +12,7 @@
 //===----------------------------------------------------------------------===//
 
 #include "llvm/Support/Program.h"
+#include "llvm/ADT/StringRef.h"
 #include "llvm/Config/config.h"
 #include <system_error>
 using namespace llvm;
index f7fe1e4c7925d635f82e7fa6fb4c016fb233550f..d3e29ac9dccdd209e1c20ac8f0add23c91b6025a 100644 (file)
@@ -14,8 +14,7 @@
 #include "llvm/Support/Regex.h"
 #include "regex_impl.h"
 #include "llvm/ADT/SmallVector.h"
-#include "llvm/Support/ErrorHandling.h"
-#include "llvm/Support/raw_ostream.h"
+#include "llvm/ADT/StringRef.h"
 #include <string>
 using namespace llvm;
 
index 6f6699cfa7c4276f21a8eb4ccca75643c1128cd1..987c2d803b7e419c7f4821baedaad920ace35770 100644 (file)
@@ -14,6 +14,7 @@
 #include "llvm/Support/ScaledNumber.h"
 #include "llvm/ADT/APFloat.h"
 #include "llvm/Support/Debug.h"
+#include "llvm/Support/raw_ostream.h"
 
 using namespace llvm;
 using namespace llvm::ScaledNumbers;
index b50a66b2974fb14d5b215cc8b33a08dcbd6ebbb9..d5e3157b064e898e1ad4e8d66647b1e028c66472 100644 (file)
 //===----------------------------------------------------------------------===//
 
 #include "llvm/Support/SourceMgr.h"
-#include "llvm/ADT/SmallString.h"
 #include "llvm/ADT/Twine.h"
 #include "llvm/Support/Locale.h"
 #include "llvm/Support/MemoryBuffer.h"
 #include "llvm/Support/Path.h"
 #include "llvm/Support/raw_ostream.h"
-#include <system_error>
 using namespace llvm;
 
 static const size_t TabStop = 8;
index c312cc11a471fcf1fdacdac65af9ff47a7bb1251..ea417c41c0a71d785fe53a12d7fc29bd1d2ad604 100644 (file)
 //===----------------------------------------------------------------------===//
 
 #include "llvm/Support/SpecialCaseList.h"
-#include "llvm/ADT/STLExtras.h"
 #include "llvm/ADT/SmallVector.h"
 #include "llvm/ADT/StringExtras.h"
 #include "llvm/ADT/StringSet.h"
 #include "llvm/Support/MemoryBuffer.h"
 #include "llvm/Support/Regex.h"
-#include "llvm/Support/raw_ostream.h"
 #include <string>
 #include <system_error>
 #include <utility>
index f39bc56164455fce6392f2afca5b125527a0a99f..90f3ed80d126f22289a13b1b0c5452449c7a3425 100644 (file)
@@ -8,12 +8,9 @@
 //===----------------------------------------------------------------------===//
 
 #include "llvm/Support/StreamingMemoryObject.h"
-#include "llvm/Support/Compiler.h"
 #include <cassert>
 #include <cstddef>
 #include <cstring>
-
-
 using namespace llvm;
 
 namespace {
index d77ad7f55a18e11cea396d59990dd01d557531a2..3e2420f67760513a0adb341118a083126bcdfd2f 100644 (file)
@@ -12,7 +12,6 @@
 //===----------------------------------------------------------------------===//
 
 #include "llvm/ADT/SmallVector.h"
-#include "llvm/ADT/STLExtras.h"
 #include "llvm/ADT/StringExtras.h"
 using namespace llvm;
 
index 2036364dc51d99a58e02615b5a8261bdf809be99..7fa6ae3f61990ccb43e0e2258377a58c7491bb33 100644 (file)
@@ -13,8 +13,6 @@
 //===----------------------------------------------------------------------===//
 
 #include "llvm/Support/SystemUtils.h"
-#include "llvm/Support/Process.h"
-#include "llvm/Support/Program.h"
 #include "llvm/Support/raw_ostream.h"
 using namespace llvm;
 
index f6918835f74bed5833cfb1edfc3a09c9bd696069..3ca857289856881f09ec4b24d2623f70e843eac5 100644 (file)
@@ -10,7 +10,6 @@
 #include "llvm/Support/TargetRegistry.h"
 #include "llvm/ADT/STLExtras.h"
 #include "llvm/ADT/StringRef.h"
-#include "llvm/Support/Host.h"
 #include "llvm/Support/raw_ostream.h"
 #include <cassert>
 #include <vector>
index e1a531a0af2531d63b53ae3bf2d47775a3e49c64..d7b65155d6ef5bdfbdfee466ea9882d8c4043e1c 100644 (file)
 #include "llvm/Support/Timer.h"
 #include "llvm/ADT/StringMap.h"
 #include "llvm/Support/CommandLine.h"
-#include "llvm/Support/Debug.h"
 #include "llvm/Support/FileSystem.h"
 #include "llvm/Support/Format.h"
 #include "llvm/Support/ManagedStatic.h"
 #include "llvm/Support/Mutex.h"
-#include "llvm/Support/MutexGuard.h"
 #include "llvm/Support/Process.h"
 #include "llvm/Support/raw_ostream.h"
 using namespace llvm;
index baf2767ad584c52019ebf9b448797f5a74107eb2..5816fb812e9f0c5888d721e133c4d9a0681f1b87 100644 (file)
 
 #include "Unix.h"
 #include "llvm/ADT/StringExtras.h"
+#include "llvm/Config/config.h"
 #include "llvm/Support/Compiler.h"
 #include "llvm/Support/FileSystem.h"
+#include "llvm/Support/Path.h"
 #include "llvm/Support/raw_ostream.h"
-#include <llvm/Config/config.h>
 #if HAVE_SYS_STAT_H
 #include <sys/stat.h>
 #endif
index 6ae7945769ce51c76fff3a480ce749d0baa896da..93aec7c0438a65074ec771b76e4e85680a5041fd 100644 (file)
@@ -12,6 +12,7 @@
 //===----------------------------------------------------------------------===//
 
 #include "llvm/Support/YAMLParser.h"
+#include "llvm/ADT/SmallString.h"
 #include "llvm/ADT/SmallVector.h"
 #include "llvm/ADT/StringExtras.h"
 #include "llvm/ADT/Twine.h"
index d888e69893716a29447bf848b59bbf5f0598deb8..74e541449f24f090b148c4b30490d750ebee0511 100644 (file)
@@ -7,13 +7,14 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "llvm/Support/Errc.h"
+#include "llvm/Support/YAMLTraits.h"
+#include "llvm/ADT/SmallString.h"
 #include "llvm/ADT/Twine.h"
 #include "llvm/Support/Casting.h"
+#include "llvm/Support/Errc.h"
 #include "llvm/Support/ErrorHandling.h"
 #include "llvm/Support/Format.h"
 #include "llvm/Support/YAMLParser.h"
-#include "llvm/Support/YAMLTraits.h"
 #include "llvm/Support/raw_ostream.h"
 #include <cctype>
 #include <cstring>
index dd401c6c9c3ad7ee058f4688e86960076b5a6793..3bc5a54b5ae1c3a170c0d1e970adb6b111b27286 100644 (file)
@@ -24,6 +24,7 @@
 #include "llvm/CodeGen/MachineRegisterInfo.h"
 #include "llvm/Support/CommandLine.h"
 #include "llvm/Support/Debug.h"
+#include "llvm/Support/raw_ostream.h"
 #include "llvm/Target/TargetInstrInfo.h"
 
 using namespace llvm;
index 6792f8b1f80d8fdc4c15b13242d7b22e09366f29..e967e537561b376ebc576eca7cca5519a633b23d 100644 (file)
@@ -21,6 +21,7 @@
 #include "llvm/IR/Function.h"        // To access Function attributes
 #include "llvm/Support/CommandLine.h"
 #include "llvm/Support/Debug.h"
+#include "llvm/Support/raw_ostream.h"
 #include "llvm/Target/TargetMachine.h"
 using namespace llvm;
 
index e19be8f974650f0ece37bdc1cd7f5be11d0c0e49..893fc7cdf473b123efd6b23cfb06679bef755d11 100644 (file)
 //
 //===----------------------------------------------------------------------===//
 
+#include "MipsTargetMachine.h"
 #include "llvm/IR/Module.h"
 #include "llvm/IR/Value.h"
 #include "llvm/Support/Debug.h"
-#include "MipsTargetMachine.h"
+#include "llvm/Support/raw_ostream.h"
 #include <algorithm>
 #include <string>
 
index 2dad4da63696f7dda0e1fea454079ff1b74a0e43..b18a673912f89295f9328f18b5ae3ea130db1e92 100644 (file)
@@ -11,6 +11,7 @@
 #include "Mips.h"
 #include "MipsTargetMachine.h"
 #include "llvm/Support/Debug.h"
+#include "llvm/Support/raw_ostream.h"
 
 using namespace llvm;
 
index 7eb0e150991920491446c52d34b61fbb73a7ef05..ca9ea51e0fb82cb6f9e90cfb48e98650f8673ac7 100644 (file)
@@ -18,6 +18,7 @@
 #include "llvm/IR/IRBuilder.h"
 #include "llvm/IR/InstVisitor.h"
 #include "llvm/Support/Debug.h"
+#include "llvm/Support/raw_ostream.h"
 
 #define DEBUG_TYPE "amdgpu-promote-alloca"
 
index b115882a84d9e9937337141f122e76b1f5c5970b..51e72cdb5f9ed289b5ed585f5c93e5cbeebe2d81 100644 (file)
 #include "llvm/CodeGen/MachineInstrBuilder.h"
 #include "llvm/CodeGen/MachineRegisterInfo.h"
 #include "llvm/IR/Constants.h"
-#include "llvm/IR/LLVMContext.h"
 #include "llvm/IR/Function.h"
+#include "llvm/IR/LLVMContext.h"
 #include "llvm/Support/Debug.h"
+#include "llvm/Support/raw_ostream.h"
 #include "llvm/Target/TargetMachine.h"
 
 #define DEBUG_TYPE "si-shrink-instructions"
index 5c71b78162ae0816cdd3274c48d950d211910f98..a2a54da8590c8e2829cf3b3c4d49ba7a75b65039 100644 (file)
@@ -60,6 +60,7 @@
 #define DEBUG_TYPE "symbol-rewriter"
 #include "llvm/CodeGen/Passes.h"
 #include "llvm/Pass.h"
+#include "llvm/ADT/SmallString.h"
 #include "llvm/IR/LegacyPassManager.h"
 #include "llvm/Support/CommandLine.h"
 #include "llvm/Support/Debug.h"
index 47da8fb60c985b3c1ba8fbca73491a5f79c9838c..0a16210d2ea53516ad25b1053848d8d035f93d7a 100644 (file)
@@ -16,6 +16,7 @@
 #include "llvm/ExecutionEngine/ExecutionEngine.h"
 #include "llvm/Support/Debug.h"
 #include "llvm/Support/Format.h"
+#include "llvm/Support/raw_ostream.h"
 
 using namespace llvm;
 
index 9c2b781ab224e2afab67a8af4896f46a1b1dbd8f..cc8117d6e7a8667bb5ad74c17a054d4725f4f28b 100644 (file)
@@ -42,6 +42,7 @@
 #include "llvm/Support/MathExtras.h"
 #include "llvm/Support/Memory.h"
 #include "llvm/Support/MemoryBuffer.h"
+#include "llvm/Support/Path.h"
 #include "llvm/Support/PluginLoader.h"
 #include "llvm/Support/PrettyStackTrace.h"
 #include "llvm/Support/Process.h"
index 2f1eb3b486a18197c0dfed473aea8dd0446291d1..f813465daafa04b5a789c2e2330de27ea4a96705 100644 (file)
@@ -24,6 +24,7 @@
 #include "llvm/Support/LineIterator.h"
 #include "llvm/Support/ManagedStatic.h"
 #include "llvm/Support/MemoryBuffer.h"
+#include "llvm/Support/Path.h"
 #include "llvm/Support/PrettyStackTrace.h"
 #include "llvm/Support/Signals.h"
 #include "llvm/Support/TargetSelect.h"
index e76f66c3980237fdcde0f5c20fcdf049c9beaf68..aeb977a5b42ee08a20e2704f96f707ffc9d4e2c7 100644 (file)
@@ -24,6 +24,7 @@
 #include "llvm/Support/Signals.h"
 #include "llvm/Support/TargetRegistry.h"
 #include "llvm/Support/TargetSelect.h"
+#include "llvm/Support/raw_ostream.h"
 #include <map>
 #include <string>
 #include <system_error>
index 2e8c640bf0cd5b8d102906720e50fb928adf7f43..1bfdb181d7a9c6e8a241661d97a8a2c748aa95bf 100644 (file)
@@ -22,6 +22,7 @@
 #include "llvm/Support/Format.h"
 #include "llvm/Support/ManagedStatic.h"
 #include "llvm/Support/MemoryBuffer.h"
+#include "llvm/Support/Path.h"
 #include "llvm/Support/PrettyStackTrace.h"
 #include "llvm/Support/Signals.h"
 #include "llvm/Support/raw_ostream.h"
index d554022e450c746b8a6b778dae4906d5c2599a74..cb40472f9d2fd128e22b21d496be0a678bc11bdc 100644 (file)
@@ -21,6 +21,7 @@
 #include "llvm/Support/Debug.h"
 #include "llvm/Support/FileSystem.h"
 #include "llvm/Support/ManagedStatic.h"
+#include "llvm/Support/Path.h"
 #include "llvm/Support/PrettyStackTrace.h"
 #include "llvm/Support/Signals.h"
 #include "llvm/Support/raw_ostream.h"
index a6536083e88011724ad91a06c9ffb938639459b0..ef3d5b39253e847d009bf04b3cf84eb277b410a1 100644 (file)
@@ -47,6 +47,7 @@
 #include "llvm/Support/Signals.h"
 #include "llvm/Support/SourceMgr.h"
 #include "llvm/Support/SystemUtils.h"
+#include "llvm/Support/raw_ostream.h"
 #include <random>
 #include <vector>
 
index efcfcc0a9dc49ee8639c43bec19703872cfee38d..371e2af95decff9c857f621ae63b269bd8547adf 100644 (file)
 #include "llvm/DebugInfo/DWARF/DWARFFormValue.h"
 #include "llvm/ADT/SmallString.h"
 #include "llvm/Support/Dwarf.h"
-#include "llvm/Support/LEB128.h"
 #include "llvm/Support/Host.h"
+#include "llvm/Support/LEB128.h"
 #include "gtest/gtest.h"
+#include <climits>
 using namespace llvm;
 using namespace dwarf;