From: Chris Lattner Date: Tue, 29 Oct 2002 16:50:06 +0000 (+0000) Subject: Remove unneeded #include X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=97d688515efd7719f1aa324f83f7c853700789a2;p=oota-llvm.git Remove unneeded #include git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4377 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/CodeGen/InterferenceGraph.h b/include/llvm/CodeGen/InterferenceGraph.h index 5af8149a329..e9cb6107877 100644 --- a/include/llvm/CodeGen/InterferenceGraph.h +++ b/include/llvm/CodeGen/InterferenceGraph.h @@ -18,20 +18,19 @@ */ -#ifndef INTERFERENCE_GRAPH_H -#define INTERFERENCE_GRAPH_H - - -#include "llvm/CodeGen/IGNode.h" - -typedef std::vector IGNodeListType; +#ifndef INTERFERENCE_GRAPH_H +#define INTERFERENCE_GRAPH_H +#include +class LiveRange; +class RegClass; +class IGNode; class InterferenceGraph { char **IG; // a poiner to the interference graph unsigned int Size; // size of a side of the IG RegClass *const RegCl; // RegCl contains this IG - IGNodeListType IGNodeList; // a list of all IGNodes in a reg class + std::vector IGNodeList; // a list of all IGNodes in a reg class public: // the matrix is not yet created by the constructor. Call createGraph() @@ -51,8 +50,8 @@ class InterferenceGraph { void mergeIGNodesOfLRs(const LiveRange *LR1, LiveRange *LR2); - IGNodeListType &getIGNodeList() { return IGNodeList; } - const IGNodeListType &getIGNodeList() const { return IGNodeList; } + std::vector &getIGNodeList() { return IGNodeList; } + const std::vector &getIGNodeList() const { return IGNodeList; } void setCurDegreeOfIGNodes(); diff --git a/lib/CodeGen/RegAlloc/InterferenceGraph.h b/lib/CodeGen/RegAlloc/InterferenceGraph.h index 5af8149a329..e9cb6107877 100644 --- a/lib/CodeGen/RegAlloc/InterferenceGraph.h +++ b/lib/CodeGen/RegAlloc/InterferenceGraph.h @@ -18,20 +18,19 @@ */ -#ifndef INTERFERENCE_GRAPH_H -#define INTERFERENCE_GRAPH_H - - -#include "llvm/CodeGen/IGNode.h" - -typedef std::vector IGNodeListType; +#ifndef INTERFERENCE_GRAPH_H +#define INTERFERENCE_GRAPH_H +#include +class LiveRange; +class RegClass; +class IGNode; class InterferenceGraph { char **IG; // a poiner to the interference graph unsigned int Size; // size of a side of the IG RegClass *const RegCl; // RegCl contains this IG - IGNodeListType IGNodeList; // a list of all IGNodes in a reg class + std::vector IGNodeList; // a list of all IGNodes in a reg class public: // the matrix is not yet created by the constructor. Call createGraph() @@ -51,8 +50,8 @@ class InterferenceGraph { void mergeIGNodesOfLRs(const LiveRange *LR1, LiveRange *LR2); - IGNodeListType &getIGNodeList() { return IGNodeList; } - const IGNodeListType &getIGNodeList() const { return IGNodeList; } + std::vector &getIGNodeList() { return IGNodeList; } + const std::vector &getIGNodeList() const { return IGNodeList; } void setCurDegreeOfIGNodes(); diff --git a/lib/Target/SparcV9/RegAlloc/InterferenceGraph.h b/lib/Target/SparcV9/RegAlloc/InterferenceGraph.h index 5af8149a329..e9cb6107877 100644 --- a/lib/Target/SparcV9/RegAlloc/InterferenceGraph.h +++ b/lib/Target/SparcV9/RegAlloc/InterferenceGraph.h @@ -18,20 +18,19 @@ */ -#ifndef INTERFERENCE_GRAPH_H -#define INTERFERENCE_GRAPH_H - - -#include "llvm/CodeGen/IGNode.h" - -typedef std::vector IGNodeListType; +#ifndef INTERFERENCE_GRAPH_H +#define INTERFERENCE_GRAPH_H +#include +class LiveRange; +class RegClass; +class IGNode; class InterferenceGraph { char **IG; // a poiner to the interference graph unsigned int Size; // size of a side of the IG RegClass *const RegCl; // RegCl contains this IG - IGNodeListType IGNodeList; // a list of all IGNodes in a reg class + std::vector IGNodeList; // a list of all IGNodes in a reg class public: // the matrix is not yet created by the constructor. Call createGraph() @@ -51,8 +50,8 @@ class InterferenceGraph { void mergeIGNodesOfLRs(const LiveRange *LR1, LiveRange *LR2); - IGNodeListType &getIGNodeList() { return IGNodeList; } - const IGNodeListType &getIGNodeList() const { return IGNodeList; } + std::vector &getIGNodeList() { return IGNodeList; } + const std::vector &getIGNodeList() const { return IGNodeList; } void setCurDegreeOfIGNodes();