[llvm] 22fa6b2 - [X86] Use Register instead of unsigned. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 7 02:38:28 PDT 2020
Author: Simon Pilgrim
Date: 2020-09-07T10:38:09+01:00
New Revision: 22fa6b20d92efe796ad881aafe6e689960fe6e7d
URL: https://github.com/llvm/llvm-project/commit/22fa6b20d92efe796ad881aafe6e689960fe6e7d
DIFF: https://github.com/llvm/llvm-project/commit/22fa6b20d92efe796ad881aafe6e689960fe6e7d.diff
LOG: [X86] Use Register instead of unsigned. NFCI.
Fixes llvm-prefer-register-over-unsigned clang-tidy warnings.
Added:
Modified:
llvm/lib/Target/X86/X86FrameLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/X86/X86FrameLowering.cpp b/llvm/lib/Target/X86/X86FrameLowering.cpp
index c7ca6fb2a4fc..d7a377e0c6ba 100644
--- a/llvm/lib/Target/X86/X86FrameLowering.cpp
+++ b/llvm/lib/Target/X86/X86FrameLowering.cpp
@@ -490,7 +490,7 @@ void X86FrameLowering::emitCalleeSavedFrameMoves(
}
const MachineModuleInfo &MMI = MF.getMMI();
const MCRegisterInfo *MRI = MMI.getContext().getRegisterInfo();
- const unsigned FramePtr = TRI->getFrameRegister(MF);
+ const Register FramePtr = TRI->getFrameRegister(MF);
const unsigned MachineFramePtr =
STI.isTarget64BitILP32() ? unsigned(getX86SubSuperRegister(FramePtr, 64))
: FramePtr;
@@ -1788,7 +1788,7 @@ void X86FrameLowering::emitEpilogue(MachineFunction &MF,
// standard x86_64 and NaCl use 64-bit frame/stack pointers, x32 - 32-bit.
const bool Is64BitILP32 = STI.isTarget64BitILP32();
Register FramePtr = TRI->getFrameRegister(MF);
- unsigned MachineFramePtr =
+ Register MachineFramePtr =
Is64BitILP32 ? Register(getX86SubSuperRegister(FramePtr, 64)) : FramePtr;
bool IsWin64Prologue = MF.getTarget().getMCAsmInfo()->usesWindowsCFI();
More information about the llvm-commits
mailing list