mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-22 19:49:49 +00:00
Prune and tidy #includes.
llvm-svn: 51697
This commit is contained in:
parent
e256337a1a
commit
3ea2dceca0
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -14,13 +14,10 @@
|
||||
#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
|
||||
|
@ -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 {
|
||||
|
@ -18,7 +18,6 @@
|
||||
#define LLVM_CODEGEN_MACHINECODEEMITTER_H
|
||||
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
#include <vector>
|
||||
|
||||
namespace llvm {
|
||||
|
||||
|
@ -18,6 +18,7 @@
|
||||
|
||||
#include "llvm/CodeGen/MachineOperand.h"
|
||||
#include "llvm/CodeGen/MachineMemOperand.h"
|
||||
#include <vector>
|
||||
|
||||
namespace llvm {
|
||||
|
||||
|
@ -15,7 +15,6 @@
|
||||
#define LLVM_CODEGEN_MACHINEOPERAND_H
|
||||
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
#include <vector>
|
||||
#include <cassert>
|
||||
#include <iosfwd>
|
||||
|
||||
|
@ -22,7 +22,6 @@
|
||||
#include <list>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
#include <set>
|
||||
#include <string>
|
||||
|
||||
namespace llvm {
|
||||
|
@ -15,7 +15,6 @@
|
||||
#define LLVM_SYSTEM_PROGRAM_H
|
||||
|
||||
#include "llvm/System/Path.h"
|
||||
#include <vector>
|
||||
|
||||
namespace llvm {
|
||||
namespace sys {
|
||||
|
@ -17,7 +17,6 @@
|
||||
#ifndef LLVM_TARGET_TARGETJITINFO_H
|
||||
#define LLVM_TARGET_TARGETJITINFO_H
|
||||
|
||||
#include <vector>
|
||||
#include <cassert>
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
|
||||
#include "llvm/Target/TargetInstrItineraries.h"
|
||||
#include <cassert>
|
||||
#include <string>
|
||||
#include <iosfwd>
|
||||
|
||||
namespace llvm {
|
||||
|
||||
|
@ -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;
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
@ -14,12 +14,12 @@
|
||||
#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
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user