Minimize #include's and forward-declares in Target.
authorNick Lewycky <nicholas@mxc.ca>
Sat, 10 Dec 2011 22:35:47 +0000 (22:35 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Sat, 10 Dec 2011 22:35:47 +0000 (22:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146335 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/TargetCallingConv.h
include/llvm/Target/TargetLowering.h
lib/Target/TargetRegisterInfo.cpp

index 3be18569f470217f7df2c5c9c2b5ac570380ec47..a6251e7d3345d39f72f9547394827d4c2a98ba89 100644 (file)
@@ -14,7 +14,6 @@
 #ifndef LLVM_TARGET_TARGETCALLINGCONV_H
 #define LLVM_TARGET_TARGETCALLINGCONV_H
 
-#include "llvm/CodeGen/ValueTypes.h"
 #include "llvm/Support/DataTypes.h"
 #include "llvm/Support/MathExtras.h"
 #include <string>
index 67179fc8f47b25d93aea185dc526221e704e4601..4b669566b3eda6a2712444aa3d7d6ca3bbdc3bbd 100644 (file)
 #include <vector>
 
 namespace llvm {
-  class AllocaInst;
-  class APFloat;
   class CallInst;
   class CCState;
-  class Function;
   class FastISel;
   class FunctionLoweringInfo;
   class ImmutableCallSite;
   class MachineBasicBlock;
   class MachineFunction;
-  class MachineFrameInfo;
   class MachineInstr;
   class MachineJumpTableInfo;
   class MCContext;
   class MCExpr;
-  class SDNode;
-  class SDValue;
-  class SelectionDAG;
   template<typename T> class SmallVectorImpl;
   class TargetData;
-  class TargetMachine;
   class TargetRegisterClass;
   class TargetLoweringObjectFile;
   class Value;
index 67239b830eb55cb0c103888a493b4e01c6638e7e..26898373222b94bc6f40bdc3b05aa1f3dee6da2c 100644 (file)
@@ -13,8 +13,6 @@
 
 #include "llvm/Target/TargetMachine.h"
 #include "llvm/Target/TargetRegisterInfo.h"
-#include "llvm/CodeGen/MachineFunction.h"
-#include "llvm/CodeGen/MachineFrameInfo.h"
 #include "llvm/ADT/BitVector.h"
 #include "llvm/Support/raw_ostream.h"