Add MRegisterInfo::getNumRegs().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11058 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Alkis Evlogimenos 2004-02-01 17:14:20 +00:00
parent b180e3e92b
commit 93aa52a8a9

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;