mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-11 13:29:36 +00:00
Constify getCompactUnwindRegNum.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134527 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b262799d49
commit
486dd90696
@ -107,8 +107,8 @@ public:
|
||||
return TRI->getSEHRegNum(RegNum);
|
||||
}
|
||||
|
||||
int getCompactUnwindRegNum(unsigned RegNum) const {
|
||||
return TRI->getCompactUnwindRegNum(RegNum);
|
||||
int getCompactUnwindRegNum(unsigned RegNum, bool isEH) const {
|
||||
return TRI->getCompactUnwindRegNum(RegNum, isEH);
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -723,7 +723,7 @@ public:
|
||||
|
||||
/// getCompactUnwindRegNum - This function maps the register to the number for
|
||||
/// compact unwind encoding. Return -1 if the register isn't valid.
|
||||
virtual int getCompactUnwindRegNum(unsigned) const {
|
||||
virtual int getCompactUnwindRegNum(unsigned, bool) const {
|
||||
return -1;
|
||||
}
|
||||
};
|
||||
|
@ -107,8 +107,8 @@ int X86RegisterInfo::getLLVMRegNum(unsigned DwarfRegNo, bool isEH) const {
|
||||
|
||||
/// getCompactUnwindRegNum - This function maps the register to the number for
|
||||
/// compact unwind encoding. Return -1 if the register isn't valid.
|
||||
int X86RegisterInfo::getCompactUnwindRegNum(unsigned RegNum) const {
|
||||
switch (RegNum) {
|
||||
int X86RegisterInfo::getCompactUnwindRegNum(unsigned RegNum, bool isEH) const {
|
||||
switch (getLLVMRegNum(RegNum, isEH)) {
|
||||
case X86::EBX: case X86::RBX: return 1;
|
||||
case X86::ECX: case X86::R12: return 2;
|
||||
case X86::EDX: case X86::R13: return 3;
|
||||
|
@ -83,7 +83,7 @@ public:
|
||||
|
||||
/// getCompactUnwindRegNum - This function maps the register to the number for
|
||||
/// compact unwind encoding. Return -1 if the register isn't valid.
|
||||
int getCompactUnwindRegNum(unsigned RegNum) const;
|
||||
int getCompactUnwindRegNum(unsigned RegNum, bool isEH) const;
|
||||
|
||||
/// Code Generation virtual methods...
|
||||
///
|
||||
|
Loading…
x
Reference in New Issue
Block a user