Skip to content

Commit e31a1c8

Browse files
authored
[CodeGen] Remove getSubReg from TargetRegisterInfo. NFC (#127680)
Users can use the version inherited from MCRegisterInfo. This version was added by e7694f3 to return a Register. It was later changed to return MCRegister by bab72dd making it identical MCRegisterInfo.
1 parent 5ecce45 commit e31a1c8

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

llvm/include/llvm/CodeGen/TargetRegisterInfo.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1232,13 +1232,6 @@ class TargetRegisterInfo : public MCRegisterInfo {
12321232
return nullptr;
12331233
}
12341234

1235-
/// Returns the physical register number of sub-register "Index"
1236-
/// for physical register RegNo. Return zero if the sub-register does not
1237-
/// exist.
1238-
inline MCRegister getSubReg(MCRegister Reg, unsigned Idx) const {
1239-
return static_cast<const MCRegisterInfo *>(this)->getSubReg(Reg, Idx);
1240-
}
1241-
12421235
/// Some targets have non-allocatable registers that aren't technically part
12431236
/// of the explicit callee saved register list, but should be handled as such
12441237
/// in certain cases.

0 commit comments

Comments
 (0)