mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-01 15:40:53 +00:00
Remove unused argument.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129955 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
eccbad78e0
commit
e8cfbd843d
@ -64,8 +64,8 @@ public:
|
||||
virtual void EmitLabel(MCSymbol *Symbol);
|
||||
virtual void EmitValueImpl(const MCExpr *Value, unsigned Size,
|
||||
bool isPCRel, unsigned AddrSpace);
|
||||
virtual void EmitULEB128Value(const MCExpr *Value, unsigned AddrSpace = 0);
|
||||
virtual void EmitSLEB128Value(const MCExpr *Value, unsigned AddrSpace = 0);
|
||||
virtual void EmitULEB128Value(const MCExpr *Value);
|
||||
virtual void EmitSLEB128Value(const MCExpr *Value);
|
||||
virtual void EmitWeakReference(MCSymbol *Alias, const MCSymbol *Symbol);
|
||||
virtual void ChangeSection(const MCSection *Section);
|
||||
virtual void EmitInstruction(const MCInst &Inst);
|
||||
|
@ -319,11 +319,9 @@ namespace llvm {
|
||||
void EmitAbsValue(const MCExpr *Value, unsigned Size,
|
||||
unsigned AddrSpace = 0);
|
||||
|
||||
virtual void EmitULEB128Value(const MCExpr *Value,
|
||||
unsigned AddrSpace = 0) = 0;
|
||||
virtual void EmitULEB128Value(const MCExpr *Value) = 0;
|
||||
|
||||
virtual void EmitSLEB128Value(const MCExpr *Value,
|
||||
unsigned AddrSpace = 0) = 0;
|
||||
virtual void EmitSLEB128Value(const MCExpr *Value) = 0;
|
||||
|
||||
/// EmitULEB128Value - Special case of EmitULEB128Value that avoids the
|
||||
/// client having to pass in a MCExpr for constant integers.
|
||||
|
@ -158,9 +158,9 @@ public:
|
||||
virtual void EmitIntValue(uint64_t Value, unsigned Size,
|
||||
unsigned AddrSpace = 0);
|
||||
|
||||
virtual void EmitULEB128Value(const MCExpr *Value, unsigned AddrSpace = 0);
|
||||
virtual void EmitULEB128Value(const MCExpr *Value);
|
||||
|
||||
virtual void EmitSLEB128Value(const MCExpr *Value, unsigned AddrSpace = 0);
|
||||
virtual void EmitSLEB128Value(const MCExpr *Value);
|
||||
|
||||
virtual void EmitGPRel32Value(const MCExpr *Value);
|
||||
|
||||
@ -560,10 +560,10 @@ void MCAsmStreamer::EmitValueImpl(const MCExpr *Value, unsigned Size,
|
||||
EmitEOL();
|
||||
}
|
||||
|
||||
void MCAsmStreamer::EmitULEB128Value(const MCExpr *Value, unsigned AddrSpace) {
|
||||
void MCAsmStreamer::EmitULEB128Value(const MCExpr *Value) {
|
||||
int64_t IntValue;
|
||||
if (Value->EvaluateAsAbsolute(IntValue)) {
|
||||
EmitULEB128IntValue(IntValue, AddrSpace);
|
||||
EmitULEB128IntValue(IntValue);
|
||||
return;
|
||||
}
|
||||
assert(MAI.hasLEB128() && "Cannot print a .uleb");
|
||||
@ -571,10 +571,10 @@ void MCAsmStreamer::EmitULEB128Value(const MCExpr *Value, unsigned AddrSpace) {
|
||||
EmitEOL();
|
||||
}
|
||||
|
||||
void MCAsmStreamer::EmitSLEB128Value(const MCExpr *Value, unsigned AddrSpace) {
|
||||
void MCAsmStreamer::EmitSLEB128Value(const MCExpr *Value) {
|
||||
int64_t IntValue;
|
||||
if (Value->EvaluateAsAbsolute(IntValue)) {
|
||||
EmitSLEB128IntValue(IntValue, AddrSpace);
|
||||
EmitSLEB128IntValue(IntValue);
|
||||
return;
|
||||
}
|
||||
assert(MAI.hasLEB128() && "Cannot print a .sleb");
|
||||
|
@ -541,7 +541,7 @@ void FrameEmitterImpl::EmitCFIInstruction(MCStreamer &Streamer,
|
||||
else
|
||||
CFAOffset = -Src.getOffset();
|
||||
|
||||
Streamer.EmitULEB128IntValue(CFAOffset, 1);
|
||||
Streamer.EmitULEB128IntValue(CFAOffset);
|
||||
return;
|
||||
}
|
||||
|
||||
@ -582,7 +582,7 @@ void FrameEmitterImpl::EmitCFIInstruction(MCStreamer &Streamer,
|
||||
case MCCFIInstruction::SameValue: {
|
||||
unsigned Reg = Instr.getDestination().getReg();
|
||||
Streamer.EmitIntValue(dwarf::DW_CFA_same_value, 1);
|
||||
Streamer.EmitULEB128IntValue(Reg, 1);
|
||||
Streamer.EmitULEB128IntValue(Reg);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -159,16 +159,14 @@ public:
|
||||
return Child->EmitValueImpl(Value, Size, isPCRel, AddrSpace);
|
||||
}
|
||||
|
||||
virtual void EmitULEB128Value(const MCExpr *Value,
|
||||
unsigned AddrSpace = 0) {
|
||||
virtual void EmitULEB128Value(const MCExpr *Value) {
|
||||
LogCall("EmitULEB128Value");
|
||||
return Child->EmitULEB128Value(Value, AddrSpace);
|
||||
return Child->EmitULEB128Value(Value);
|
||||
}
|
||||
|
||||
virtual void EmitSLEB128Value(const MCExpr *Value,
|
||||
unsigned AddrSpace = 0) {
|
||||
virtual void EmitSLEB128Value(const MCExpr *Value) {
|
||||
LogCall("EmitSLEB128Value");
|
||||
return Child->EmitSLEB128Value(Value, AddrSpace);
|
||||
return Child->EmitSLEB128Value(Value);
|
||||
}
|
||||
|
||||
virtual void EmitGPRel32Value(const MCExpr *Value) {
|
||||
|
@ -68,10 +68,8 @@ namespace {
|
||||
|
||||
virtual void EmitValueImpl(const MCExpr *Value, unsigned Size,
|
||||
bool isPCRel, unsigned AddrSpace) {}
|
||||
virtual void EmitULEB128Value(const MCExpr *Value,
|
||||
unsigned AddrSpace = 0) {}
|
||||
virtual void EmitSLEB128Value(const MCExpr *Value,
|
||||
unsigned AddrSpace = 0) {}
|
||||
virtual void EmitULEB128Value(const MCExpr *Value) {}
|
||||
virtual void EmitSLEB128Value(const MCExpr *Value) {}
|
||||
virtual void EmitGPRel32Value(const MCExpr *Value) {}
|
||||
virtual void EmitValueToAlignment(unsigned ByteAlignment, int64_t Value = 0,
|
||||
unsigned ValueSize = 1,
|
||||
|
@ -124,21 +124,19 @@ void MCObjectStreamer::EmitLabel(MCSymbol *Symbol) {
|
||||
SD.setOffset(F->getContents().size());
|
||||
}
|
||||
|
||||
void MCObjectStreamer::EmitULEB128Value(const MCExpr *Value,
|
||||
unsigned AddrSpace) {
|
||||
void MCObjectStreamer::EmitULEB128Value(const MCExpr *Value) {
|
||||
int64_t IntValue;
|
||||
if (Value->EvaluateAsAbsolute(IntValue, getAssembler())) {
|
||||
EmitULEB128IntValue(IntValue, AddrSpace);
|
||||
EmitULEB128IntValue(IntValue);
|
||||
return;
|
||||
}
|
||||
new MCLEBFragment(*Value, false, getCurrentSectionData());
|
||||
}
|
||||
|
||||
void MCObjectStreamer::EmitSLEB128Value(const MCExpr *Value,
|
||||
unsigned AddrSpace) {
|
||||
void MCObjectStreamer::EmitSLEB128Value(const MCExpr *Value) {
|
||||
int64_t IntValue;
|
||||
if (Value->EvaluateAsAbsolute(IntValue, getAssembler())) {
|
||||
EmitSLEB128IntValue(IntValue, AddrSpace);
|
||||
EmitSLEB128IntValue(IntValue);
|
||||
return;
|
||||
}
|
||||
new MCLEBFragment(*Value, true, getCurrentSectionData());
|
||||
|
@ -144,8 +144,8 @@ public:
|
||||
|
||||
virtual void EmitValueImpl(const MCExpr *Value, unsigned Size,
|
||||
bool isPCRel, unsigned AddrSpace);
|
||||
virtual void EmitULEB128Value(const MCExpr *Value, unsigned AddrSpace = 0);
|
||||
virtual void EmitSLEB128Value(const MCExpr *Value, unsigned AddrSpace = 0);
|
||||
virtual void EmitULEB128Value(const MCExpr *Value);
|
||||
virtual void EmitSLEB128Value(const MCExpr *Value);
|
||||
virtual void EmitGPRel32Value(const MCExpr *Value);
|
||||
|
||||
|
||||
@ -383,15 +383,13 @@ void PTXMCAsmStreamer::EmitValueImpl(const MCExpr *Value, unsigned Size,
|
||||
EmitEOL();
|
||||
}
|
||||
|
||||
void PTXMCAsmStreamer::EmitULEB128Value(const MCExpr *Value,
|
||||
unsigned AddrSpace) {
|
||||
void PTXMCAsmStreamer::EmitULEB128Value(const MCExpr *Value) {
|
||||
assert(MAI.hasLEB128() && "Cannot print a .uleb");
|
||||
OS << ".uleb128 " << *Value;
|
||||
EmitEOL();
|
||||
}
|
||||
|
||||
void PTXMCAsmStreamer::EmitSLEB128Value(const MCExpr *Value,
|
||||
unsigned AddrSpace) {
|
||||
void PTXMCAsmStreamer::EmitSLEB128Value(const MCExpr *Value) {
|
||||
assert(MAI.hasLEB128() && "Cannot print a .sleb");
|
||||
OS << ".sleb128 " << *Value;
|
||||
EmitEOL();
|
||||
|
@ -583,10 +583,8 @@ namespace {
|
||||
virtual void EmitBytes(StringRef Data, unsigned AddrSpace) {}
|
||||
virtual void EmitValueImpl(const MCExpr *Value, unsigned Size,
|
||||
bool isPCRel, unsigned AddrSpace) {}
|
||||
virtual void EmitULEB128Value(const MCExpr *Value,
|
||||
unsigned AddrSpace = 0) {}
|
||||
virtual void EmitSLEB128Value(const MCExpr *Value,
|
||||
unsigned AddrSpace = 0) {}
|
||||
virtual void EmitULEB128Value(const MCExpr *Value) {}
|
||||
virtual void EmitSLEB128Value(const MCExpr *Value) {}
|
||||
virtual void EmitValueToAlignment(unsigned ByteAlignment, int64_t Value,
|
||||
unsigned ValueSize,
|
||||
unsigned MaxBytesToEmit) {}
|
||||
|
Loading…
Reference in New Issue
Block a user