Prune some includes and forward declarations.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153414 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Craig Topper
2012-03-25 18:09:44 +00:00
parent a5adcc127f
commit 6c01492ac4
8 changed files with 4 additions and 20 deletions

View File

@@ -17,9 +17,7 @@
#include "llvm/ADT/DenseMap.h" #include "llvm/ADT/DenseMap.h"
namespace llvm { namespace llvm {
class StringRef;
class Twine; class Twine;
class Value;
class GlobalValue; class GlobalValue;
template <typename T> class SmallVectorImpl; template <typename T> class SmallVectorImpl;
class MCContext; class MCContext;

View File

@@ -15,9 +15,6 @@
#define LLVM_TARGET_TARGETELFWRITERINFO_H #define LLVM_TARGET_TARGETELFWRITERINFO_H
namespace llvm { namespace llvm {
class Function;
class TargetData;
class TargetMachine;
//===--------------------------------------------------------------------===// //===--------------------------------------------------------------------===//
// TargetELFWriterInfo // TargetELFWriterInfo

View File

@@ -15,8 +15,6 @@
#define LLVM_TARGET_TARGETFRAMELOWERING_H #define LLVM_TARGET_TARGETFRAMELOWERING_H
#include "llvm/CodeGen/MachineBasicBlock.h" #include "llvm/CodeGen/MachineBasicBlock.h"
#include "llvm/MC/MCDwarf.h"
#include "llvm/ADT/ArrayRef.h"
#include <utility> #include <utility>
#include <vector> #include <vector>
@@ -24,8 +22,6 @@
namespace llvm { namespace llvm {
class CalleeSavedInfo; class CalleeSavedInfo;
class MachineFunction; class MachineFunction;
class MachineBasicBlock;
class MachineMove;
class RegScavenger; class RegScavenger;
/// Information about stack frame layout on the target. It holds the direction /// Information about stack frame layout on the target. It holds the direction

View File

@@ -17,9 +17,9 @@
#ifndef LLVM_TARGET_TARGETJITINFO_H #ifndef LLVM_TARGET_TARGETJITINFO_H
#define LLVM_TARGET_TARGETJITINFO_H #define LLVM_TARGET_TARGETJITINFO_H
#include <cassert>
#include "llvm/Support/ErrorHandling.h" #include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/DataTypes.h" #include "llvm/Support/DataTypes.h"
#include <cassert>
namespace llvm { namespace llvm {
class Function; class Function;

View File

@@ -25,7 +25,6 @@
#include "llvm/CallingConv.h" #include "llvm/CallingConv.h"
#include "llvm/InlineAsm.h" #include "llvm/InlineAsm.h"
#include "llvm/Attributes.h" #include "llvm/Attributes.h"
#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/CodeGen/SelectionDAGNodes.h" #include "llvm/CodeGen/SelectionDAGNodes.h"
#include "llvm/CodeGen/RuntimeLibcalls.h" #include "llvm/CodeGen/RuntimeLibcalls.h"
#include "llvm/Support/DebugLoc.h" #include "llvm/Support/DebugLoc.h"

View File

@@ -19,19 +19,15 @@
#include "llvm/MC/MCObjectFileInfo.h" #include "llvm/MC/MCObjectFileInfo.h"
#include "llvm/MC/SectionKind.h" #include "llvm/MC/SectionKind.h"
#include "llvm/ADT/ArrayRef.h" #include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/StringRef.h"
namespace llvm { namespace llvm {
class MachineModuleInfo; class MachineModuleInfo;
class Mangler; class Mangler;
class MCAsmInfo;
class MCContext; class MCContext;
class MCExpr; class MCExpr;
class MCSection; class MCSection;
class MCSectionMachO;
class MCSymbol; class MCSymbol;
class MCStreamer; class MCStreamer;
class NamedMDNode;
class GlobalValue; class GlobalValue;
class TargetMachine; class TargetMachine;

View File

@@ -14,8 +14,8 @@
#ifndef LLVM_TARGET_TARGETMACHINE_H #ifndef LLVM_TARGET_TARGETMACHINE_H
#define LLVM_TARGET_TARGETMACHINE_H #define LLVM_TARGET_TARGETMACHINE_H
#include "llvm/Support/CodeGen.h"
#include "llvm/Target/TargetOptions.h" #include "llvm/Target/TargetOptions.h"
#include "llvm/MC/MCCodeGenInfo.h"
#include "llvm/ADT/StringRef.h" #include "llvm/ADT/StringRef.h"
#include <cassert> #include <cassert>
#include <string> #include <string>
@@ -27,8 +27,6 @@ class JITCodeEmitter;
class MCAsmInfo; class MCAsmInfo;
class MCCodeGenInfo; class MCCodeGenInfo;
class MCContext; class MCContext;
class Pass;
class PassManager;
class PassManagerBase; class PassManagerBase;
class Target; class Target;
class TargetData; class TargetData;

View File

@@ -15,7 +15,7 @@
#define LLVM_TARGET_TARGETSUBTARGETINFO_H #define LLVM_TARGET_TARGETSUBTARGETINFO_H
#include "llvm/MC/MCSubtargetInfo.h" #include "llvm/MC/MCSubtargetInfo.h"
#include "llvm/Target/TargetMachine.h" #include "llvm/Support/CodeGen.h"
namespace llvm { namespace llvm {