summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Staszak <kubastaszak@gmail.com>2013-03-18 23:45:45 +0000
committerJakub Staszak <kubastaszak@gmail.com>2013-03-18 23:45:45 +0000
commitb6970267ade3effc12d95c9ef123a4b4562f3cee (patch)
tree6c0c1c5cb2601abb67c86fee59c7b171a5305882
parent26ac8a7b16621d854ec438aca17dbec6d17dce43 (diff)
downloadbcm5719-llvm-b6970267ade3effc12d95c9ef123a4b4562f3cee.tar.gz
bcm5719-llvm-b6970267ade3effc12d95c9ef123a4b4562f3cee.zip
Move #include of BitVector from .h to .cpp file.
Also remove unneeded #include and forward declaration. llvm-svn: 177357
-rw-r--r--llvm/include/llvm/CodeGen/LiveIntervalAnalysis.h3
-rw-r--r--llvm/include/llvm/CodeGen/LiveVariables.h4
-rw-r--r--llvm/lib/CodeGen/SpillPlacement.cpp1
3 files changed, 3 insertions, 5 deletions
diff --git a/llvm/include/llvm/CodeGen/LiveIntervalAnalysis.h b/llvm/include/llvm/CodeGen/LiveIntervalAnalysis.h
index 46323681577..7d72f37255b 100644
--- a/llvm/include/llvm/CodeGen/LiveIntervalAnalysis.h
+++ b/llvm/include/llvm/CodeGen/LiveIntervalAnalysis.h
@@ -20,9 +20,7 @@
#ifndef LLVM_CODEGEN_LIVEINTERVAL_ANALYSIS_H
#define LLVM_CODEGEN_LIVEINTERVAL_ANALYSIS_H
-#include "llvm/ADT/BitVector.h"
#include "llvm/ADT/IndexedMap.h"
-#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/CodeGen/LiveInterval.h"
#include "llvm/CodeGen/MachineBasicBlock.h"
@@ -36,6 +34,7 @@
namespace llvm {
class AliasAnalysis;
+ class BitVector;
class LiveRangeCalc;
class LiveVariables;
class MachineDominatorTree;
diff --git a/llvm/include/llvm/CodeGen/LiveVariables.h b/llvm/include/llvm/CodeGen/LiveVariables.h
index 3c5ed9297e8..6628fd278e4 100644
--- a/llvm/include/llvm/CodeGen/LiveVariables.h
+++ b/llvm/include/llvm/CodeGen/LiveVariables.h
@@ -29,21 +29,19 @@
#ifndef LLVM_CODEGEN_LIVEVARIABLES_H
#define LLVM_CODEGEN_LIVEVARIABLES_H
-#include "llvm/ADT/BitVector.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/IndexedMap.h"
#include "llvm/ADT/SmallSet.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/SparseBitVector.h"
-#include "llvm/CodeGen/MachineBasicBlock.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/CodeGen/MachineInstr.h"
#include "llvm/Target/TargetRegisterInfo.h"
namespace llvm {
+class MachineBasicBlock;
class MachineRegisterInfo;
-class TargetRegisterInfo;
class LiveVariables : public MachineFunctionPass {
public:
diff --git a/llvm/lib/CodeGen/SpillPlacement.cpp b/llvm/lib/CodeGen/SpillPlacement.cpp
index 320128a999e..c5bbba3ffcc 100644
--- a/llvm/lib/CodeGen/SpillPlacement.cpp
+++ b/llvm/lib/CodeGen/SpillPlacement.cpp
@@ -29,6 +29,7 @@
#define DEBUG_TYPE "spillplacement"
#include "SpillPlacement.h"
+#include "llvm/ADT/BitVector.h"
#include "llvm/CodeGen/EdgeBundles.h"
#include "llvm/CodeGen/LiveIntervalAnalysis.h"
#include "llvm/CodeGen/MachineBasicBlock.h"
OpenPOWER on IntegriCloud