aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/SparcV9/RegAlloc/InterferenceGraph.h
diff options
context:
space:
mode:
authorNate Begeman <natebegeman@mac.com>2005-06-12 23:52:58 +0000
committerNate Begeman <natebegeman@mac.com>2005-06-12 23:52:58 +0000
commit244e92eaab5065e489df98f3340f10815714185f (patch)
tree9157c0e797c5241a1de3525926eab3032d4c1271 /lib/Target/SparcV9/RegAlloc/InterferenceGraph.h
parentac609ddf823d6d955f74ec6f82ca3b388ed9d610 (diff)
When compiled with GCC 4.0, a latent bug was exposed where both SparcV9
and the target independant register allocator were both using a class named 'LiveRange'. This lead to the target independant code calling code in the SparcV9 backend, which crashed. Fixed by renaming SparcV9's LiveRange to V9LiveRange. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22208 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SparcV9/RegAlloc/InterferenceGraph.h')
-rw-r--r--lib/Target/SparcV9/RegAlloc/InterferenceGraph.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/Target/SparcV9/RegAlloc/InterferenceGraph.h b/lib/Target/SparcV9/RegAlloc/InterferenceGraph.h
index 2f07b4f1df..1a85d6f4ef 100644
--- a/lib/Target/SparcV9/RegAlloc/InterferenceGraph.h
+++ b/lib/Target/SparcV9/RegAlloc/InterferenceGraph.h
@@ -33,7 +33,7 @@
namespace llvm {
-class LiveRange;
+class V9LiveRange;
class RegClass;
class IGNode;
@@ -51,15 +51,15 @@ class InterferenceGraph {
void createGraph();
- void addLRToIG(LiveRange *LR);
+ void addLRToIG(V9LiveRange *LR);
- void setInterference(const LiveRange *LR1,
- const LiveRange *LR2);
+ void setInterference(const V9LiveRange *LR1,
+ const V9LiveRange *LR2);
- unsigned getInterference(const LiveRange *LR1,
- const LiveRange *LR2) const ;
+ unsigned getInterference(const V9LiveRange *LR1,
+ const V9LiveRange *LR2) const ;
- void mergeIGNodesOfLRs(const LiveRange *LR1, LiveRange *LR2);
+ void mergeIGNodesOfLRs(const V9LiveRange *LR1, V9LiveRange *LR2);
std::vector<IGNode *> &getIGNodeList() { return IGNodeList; }
const std::vector<IGNode *> &getIGNodeList() const { return IGNodeList; }