Prune and tidy #includes.
authorDan Gohman <gohman@apple.com>
Thu, 29 May 2008 19:52:31 +0000 (19:52 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 29 May 2008 19:52:31 +0000 (19:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51697 91177308-0d34-0410-b5e6-96231b3b80d8

14 files changed:
include/llvm/ADT/BitVector.h
include/llvm/Analysis/ScalarEvolution.h
include/llvm/Analysis/ScalarEvolutionExpander.h
include/llvm/CodeGen/LiveInterval.h
include/llvm/CodeGen/MachineCodeEmitter.h
include/llvm/CodeGen/MachineInstr.h
include/llvm/CodeGen/MachineOperand.h
include/llvm/CodeGen/SelectionDAG.h
include/llvm/System/Program.h
include/llvm/Target/TargetJITInfo.h
include/llvm/Target/TargetMachine.h
include/llvm/Transforms/Scalar.h
include/llvm/Transforms/Utils/FunctionUtils.h
include/llvm/Value.h

index fccb1c6e8abac0d921f009dce82ed5b204dba35f..a2f273df4a23ba1ae28c514acbe35d99aa44d835 100644 (file)
@@ -17,7 +17,6 @@
 #include "llvm/Support/MathExtras.h"
 #include <algorithm>
 #include <cassert>
-#include <cstdlib>
 #include <cstring>
 
 namespace llvm {
@@ -65,7 +64,7 @@ public:
 
   /// BitVector default ctor - Creates an empty bitvector.
   BitVector() : Size(0), Capacity(0) {
-    Bits = NULL;
+    Bits = 0;
   }
 
   /// BitVector ctor - Creates a bitvector of specified number of bits. All
@@ -81,7 +80,7 @@ public:
   /// BitVector copy ctor.
   BitVector(const BitVector &RHS) : Size(RHS.size()) {
     if (Size == 0) {
-      Bits = NULL;
+      Bits = 0;
       Capacity = 0;
       return;
     }
index 4d9d5e5fc044c7aad59ad93bd91b17cfa14de1af..a8e45e0fa6457ba8b836f435bee924ce5e061978 100644 (file)
@@ -24,8 +24,7 @@
 #include "llvm/Pass.h"
 #include "llvm/Analysis/LoopInfo.h"
 #include "llvm/Support/DataTypes.h"
-#include "llvm/Support/Streams.h"
-#include <set>
+#include <iosfwd>
 
 namespace llvm {
   class APInt;
index ed520f5dc2aec8781d4b0b416224f7861fda2c8b..daff373348b89b0da904aa8a5ff9f8a302de6155 100644 (file)
 #ifndef LLVM_ANALYSIS_SCALAREVOLUTION_EXPANDER_H
 #define LLVM_ANALYSIS_SCALAREVOLUTION_EXPANDER_H
 
-#include "llvm/BasicBlock.h"
-#include "llvm/Constants.h"
 #include "llvm/Instructions.h"
 #include "llvm/Type.h"
 #include "llvm/Analysis/ScalarEvolution.h"
 #include "llvm/Analysis/ScalarEvolutionExpressions.h"
-#include "llvm/Support/CFG.h"
 
 namespace llvm {
   /// SCEVExpander - This class uses information about analyze scalars to
index 31d6947a76c826048e4c1b51f33408f60cbc24af..e941a458dfb8379263588d9b223e0c9601f51115 100644 (file)
@@ -23,9 +23,7 @@
 
 #include "llvm/ADT/SmallVector.h"
 #include "llvm/Support/Allocator.h"
-#include "llvm/Support/Streams.h"
 #include <iosfwd>
-#include <vector>
 #include <cassert>
 
 namespace llvm {
index e38eb061baa66dbb48e61f70d5b5d5cd67bcbd2f..86684d7b9e4f4d788be976909e276ac7ebbf9b96 100644 (file)
@@ -18,7 +18,6 @@
 #define LLVM_CODEGEN_MACHINECODEEMITTER_H
 
 #include "llvm/Support/DataTypes.h"
-#include <vector>
 
 namespace llvm {
 
index 0c657db6dcb93e15d457601e889745f02b08168e..6e46ab39c894809d12d0ee727dbf0743b596ab01 100644 (file)
@@ -18,6 +18,7 @@
 
 #include "llvm/CodeGen/MachineOperand.h"
 #include "llvm/CodeGen/MachineMemOperand.h"
+#include <vector>
 
 namespace llvm {
 
index d62c8f8b4749d2372bd32ac1cc1a58db2cb4f92b..28d63524bc4edc89ed0788b8381cfe79461a537e 100644 (file)
@@ -15,7 +15,6 @@
 #define LLVM_CODEGEN_MACHINEOPERAND_H
 
 #include "llvm/Support/DataTypes.h"
-#include <vector>
 #include <cassert>
 #include <iosfwd>
 
index b68ed60681c04ab5bcc42cf87a9a04284f0e816f..77405e46a34faf0363871952cf3a62a32ac5bf90 100644 (file)
@@ -22,7 +22,6 @@
 #include <list>
 #include <vector>
 #include <map>
-#include <set>
 #include <string>
 
 namespace llvm {
index 3e9a1f2835ef9540abbf1ad8f5099db0904b7e4d..ecb909c68eb69ce206b4c2b0af54fb91f757875b 100644 (file)
@@ -15,7 +15,6 @@
 #define LLVM_SYSTEM_PROGRAM_H
 
 #include "llvm/System/Path.h"
-#include <vector>
 
 namespace llvm {
 namespace sys {
index 918319f11cc6e9682b0aec04237021ef8ea1fa21..6e1eb4396c6026baefbc38980a968692ddd32dd8 100644 (file)
@@ -17,7 +17,6 @@
 #ifndef LLVM_TARGET_TARGETJITINFO_H
 #define LLVM_TARGET_TARGETJITINFO_H
 
-#include <vector>
 #include <cassert>
 #include "llvm/Support/DataTypes.h"
 
index b495f85d349936afcabd1daa3aa5108d664d4a26..e86af9fd8dbc8ecb5b20db7ac40e2e34682b7695 100644 (file)
@@ -16,7 +16,7 @@
 
 #include "llvm/Target/TargetInstrItineraries.h"
 #include <cassert>
-#include <string>
+#include <iosfwd>
 
 namespace llvm {
 
index 9a165c91c99b4757871917dcf2d789e0b35df9d2..d62cdc7a862f3129c17edf0259e7a527d4d021c4 100644 (file)
@@ -15,8 +15,6 @@
 #ifndef LLVM_TRANSFORMS_SCALAR_H
 #define LLVM_TRANSFORMS_SCALAR_H
 
-#include <cstdlib>
-
 namespace llvm {
 
 class FunctionPass;
@@ -271,7 +269,7 @@ extern const PassInfo *const LowerSwitchID;
 // purpose "my LLVM-to-LLVM pass doesn't support the invoke instruction yet"
 // lowering pass.
 //
-FunctionPass *createLowerInvokePass(const TargetLowering *TLI = NULL);
+FunctionPass *createLowerInvokePass(const TargetLowering *TLI = 0);
 extern const PassInfo *const LowerInvokePassID;
 
 //===----------------------------------------------------------------------===//
index 09afebeab790565aa3346902b9e74f1fb59c5d3f..dc7ef238652c5f2b3adc4d6e5283862eed17be00 100644 (file)
 #ifndef LLVM_TRANSFORMS_UTILS_FUNCTION_H
 #define LLVM_TRANSFORMS_UTILS_FUNCTION_H
 
-#include "llvm/Analysis/Dominators.h"
 #include "llvm/Analysis/LoopInfo.h"
 #include <vector>
 
 namespace llvm {
   class BasicBlock;
+  class DominatorTree;
   class Function;
 
   /// ExtractCodeRegion - rip out a sequence of basic blocks into a new function
index efac8e88f7681cf528637d93deceabe56bb9b6e9..af90b91c3bfba2f8bd51f6608796b6d83c7c299b 100644 (file)
@@ -18,7 +18,7 @@
 #include "llvm/AbstractTypeUser.h"
 #include "llvm/Use.h"
 #include "llvm/Support/Casting.h"
-#include "llvm/Support/Streams.h"
+#include <iosfwd>
 #include <string>
 
 namespace llvm {