Add MRegisterInfo::getNumRegs().

llvm-svn: 11058
This commit is contained in:
Alkis Evlogimenos 2004-02-01 17:14:20 +00:00
parent a3a56fa041
commit 0df32f636e
1 changed files with 6 additions and 0 deletions

View File

@ -182,6 +182,12 @@ public:
return get(RegNo).Name;
}
/// getNumRegs - Return the number of registers this target has
/// (useful for sizing arrays holding per register information)
unsigned getNumRegs() const {
return NumRegs;
}
virtual const unsigned* getCalleeSaveRegs() const = 0;