summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2004-06-03 05:03:00 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2004-06-03 05:03:00 +0000
commit25c6fa0e838f991aeca931526ee60dc3d62de714 (patch)
treeb3f74d62d5b2c90ed69f58fa6e75f7dc39bda5e0 /llvm/lib/Target
parent11cfb090b809a96e04f95bdbcbd351e1b23c793c (diff)
downloadbcm5719-llvm-25c6fa0e838f991aeca931526ee60dc3d62de714.tar.gz
bcm5719-llvm-25c6fa0e838f991aeca931526ee60dc3d62de714.zip
Fix big mistake in my last checkin... the big question is, how did I ever
get this to link before? llvm-svn: 13980
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/SparcV9/SparcV9RegInfo.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/llvm/lib/Target/SparcV9/SparcV9RegInfo.h b/llvm/lib/Target/SparcV9/SparcV9RegInfo.h
index da6e5add88f..6f0ef04ae34 100644
--- a/llvm/lib/Target/SparcV9/SparcV9RegInfo.h
+++ b/llvm/lib/Target/SparcV9/SparcV9RegInfo.h
@@ -53,7 +53,7 @@ public:
// This defaults to marking a single register but may mark multiple
// registers when a single number denotes paired registers.
//
- void markColorsUsed(unsigned RegInClass,
+ virtual void markColorsUsed(unsigned RegInClass,
int UserRegType,
int RegTypeWanted,
std::vector<bool> &IsColorUsedArr) const {
@@ -69,7 +69,7 @@ public:
// for paired registers and other such silliness.
// It returns -1 if no unused color is found.
//
- int findUnusedColor(int RegTypeWanted,
+ virtual int findUnusedColor(int RegTypeWanted,
const std::vector<bool> &IsColorUsedArr) const {
// find first unused color in the IsColorUsedArr directly
unsigned NC = this->getNumOfAvailRegs();
@@ -82,18 +82,18 @@ public:
// This method should find a color which is not used by neighbors
// (i.e., a false position in IsColorUsedArr) and
- void colorIGNode(IGNode *Node,
- const std::vector<bool> &IsColorUsedArr) const;
+ virtual void colorIGNode(IGNode *Node,
+ const std::vector<bool> &IsColorUsedArr) const = 0;
// Check whether a specific register is volatile, i.e., whether it is not
// preserved across calls
- bool isRegVolatile(int Reg) const;
+ virtual bool isRegVolatile(int Reg) const = 0;
// Check whether a specific register is modified as a side-effect of the
// call instruction itself,
- bool modifiedByCall(int Reg) const {return false; }
+ virtual bool modifiedByCall(int Reg) const { return false; }
- virtual const char* const getRegName(unsigned reg) const;
+ virtual const char* const getRegName(unsigned reg) const = 0;
TargetRegClassInfo(unsigned ID, unsigned NVR, unsigned NAR)
: RegClassID(ID), NumOfAvailRegs(NVR), NumOfAllRegs(NAR) {}
OpenPOWER on IntegriCloud