mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
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:
parent
b180e3e92b
commit
93aa52a8a9
@ -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;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user