[llvm] r332420 - ARM: Remove unnecessary argument. NFCI.
Peter Collingbourne via llvm-commits
llvm-commits at lists.llvm.org
Tue May 15 17:21:47 PDT 2018
Author: pcc
Date: Tue May 15 17:21:47 2018
New Revision: 332420
URL: http://llvm.org/viewvc/llvm-project?rev=332420&view=rev
Log:
ARM: Remove unnecessary argument. NFCI.
IsLittleEndian is already a field of ARMAsmBackend.
Modified:
llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp
llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.h
Modified: llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp?rev=332420&r1=332419&r2=332420&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp (original)
+++ llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp Tue May 15 17:21:47 2018
@@ -359,8 +359,7 @@ static uint32_t joinHalfWords(uint32_t F
unsigned ARMAsmBackend::adjustFixupValue(const MCAssembler &Asm,
const MCFixup &Fixup,
const MCValue &Target, uint64_t Value,
- bool IsResolved, MCContext &Ctx,
- bool IsLittleEndian) const {
+ bool IsResolved, MCContext &Ctx) const {
unsigned Kind = Fixup.getKind();
// MachO tries to make .o files that look vaguely pre-linked, so for MOVW/MOVT
@@ -885,8 +884,7 @@ void ARMAsmBackend::applyFixup(const MCA
bool IsResolved) const {
unsigned NumBytes = getFixupKindNumBytes(Fixup.getKind());
MCContext &Ctx = Asm.getContext();
- Value = adjustFixupValue(Asm, Fixup, Target, Value, IsResolved, Ctx,
- IsLittleEndian);
+ Value = adjustFixupValue(Asm, Fixup, Target, Value, IsResolved, Ctx);
if (!Value)
return; // Doesn't change encoding.
Modified: llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.h?rev=332420&r1=332419&r2=332420&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.h (original)
+++ llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.h Tue May 15 17:21:47 2018
@@ -41,8 +41,7 @@ public:
unsigned adjustFixupValue(const MCAssembler &Asm, const MCFixup &Fixup,
const MCValue &Target, uint64_t Value,
- bool IsResolved, MCContext &Ctx,
- bool IsLittleEndian) const;
+ bool IsResolved, MCContext &Ctx) const;
void applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
const MCValue &Target, MutableArrayRef<char> Data,
More information about the llvm-commits
mailing list