Skip to content

Commit feb391c

Browse files
authored
[X86] Remove X86RegisterInfo::getSEHRegNum. (#106866)
As far as I can tell, there's no way to call this. There are no calls in the X86 directory. It has the same name as a function in MCRegisterInfo, but that function takes a MCRegister and isn't virtual. The function in MCRegisterInfo uses a DenseMap populated by `X86_MC::initLLVMToSEHAndCVRegMapping`. The DenseMap is populated for every physical register using the encoding value. I think that means the function in MCRegisterInfo would return the same value as the function in X86RegisterInfo.
1 parent e4f3b56 commit feb391c

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

llvm/lib/Target/X86/X86RegisterInfo.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,6 @@ X86RegisterInfo::X86RegisterInfo(const Triple &TT)
8383
}
8484
}
8585

86-
int
87-
X86RegisterInfo::getSEHRegNum(unsigned i) const {
88-
return getEncodingValue(i);
89-
}
90-
9186
const TargetRegisterClass *
9287
X86RegisterInfo::getSubClassWithSubReg(const TargetRegisterClass *RC,
9388
unsigned Idx) const {

llvm/lib/Target/X86/X86RegisterInfo.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,6 @@ class X86RegisterInfo final : public X86GenRegisterInfo {
5454
/// Return the number of registers for the function.
5555
unsigned getNumSupportedRegs(const MachineFunction &MF) const override;
5656

57-
// FIXME: This should be tablegen'd like getDwarfRegNum is
58-
int getSEHRegNum(unsigned i) const;
59-
6057
/// getMatchingSuperRegClass - Return a subclass of the specified register
6158
/// class A so that each register in it has a sub-register of the
6259
/// specified sub-register index which is in the specified register class B.

0 commit comments

Comments
 (0)