mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-02 07:17: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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user