mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Misc code refactorings:
* Remove unnecessary arguments now that ForceExpAbs is a method. * Use ForceExpAbs in EmitAbsValue. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131683 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -127,7 +127,7 @@ void MCObjectStreamer::EmitULEB128Value(const MCExpr *Value) {
|
||||
EmitULEB128IntValue(IntValue);
|
||||
return;
|
||||
}
|
||||
Value = ForceExpAbs(this, getContext(), Value);
|
||||
Value = ForceExpAbs(Value);
|
||||
new MCLEBFragment(*Value, false, getCurrentSectionData());
|
||||
}
|
||||
|
||||
@@ -137,7 +137,7 @@ void MCObjectStreamer::EmitSLEB128Value(const MCExpr *Value) {
|
||||
EmitSLEB128IntValue(IntValue);
|
||||
return;
|
||||
}
|
||||
Value = ForceExpAbs(this, getContext(), Value);
|
||||
Value = ForceExpAbs(Value);
|
||||
new MCLEBFragment(*Value, true, getCurrentSectionData());
|
||||
}
|
||||
|
||||
@@ -209,7 +209,7 @@ void MCObjectStreamer::EmitDwarfAdvanceLineAddr(int64_t LineDelta,
|
||||
MCDwarfLineAddr::Emit(this, LineDelta, Res);
|
||||
return;
|
||||
}
|
||||
AddrDelta = ForceExpAbs(this, getContext(), AddrDelta);
|
||||
AddrDelta = ForceExpAbs(AddrDelta);
|
||||
new MCDwarfLineAddrFragment(LineDelta, *AddrDelta, getCurrentSectionData());
|
||||
}
|
||||
|
||||
@@ -221,7 +221,7 @@ void MCObjectStreamer::EmitDwarfAdvanceFrameAddr(const MCSymbol *LastLabel,
|
||||
MCDwarfFrameEmitter::EmitAdvanceLoc(*this, Res);
|
||||
return;
|
||||
}
|
||||
AddrDelta = ForceExpAbs(this, getContext(), AddrDelta);
|
||||
AddrDelta = ForceExpAbs(AddrDelta);
|
||||
new MCDwarfCallFrameFragment(*AddrDelta, getCurrentSectionData());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user