mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 06:29:05 +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:
@@ -64,8 +64,8 @@ public:
|
|||||||
virtual void EmitLabel(MCSymbol *Symbol);
|
virtual void EmitLabel(MCSymbol *Symbol);
|
||||||
virtual void EmitValueImpl(const MCExpr *Value, unsigned Size,
|
virtual void EmitValueImpl(const MCExpr *Value, unsigned Size,
|
||||||
bool isPCRel, unsigned AddrSpace);
|
bool isPCRel, unsigned AddrSpace);
|
||||||
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 EmitWeakReference(MCSymbol *Alias, const MCSymbol *Symbol);
|
virtual void EmitWeakReference(MCSymbol *Alias, const MCSymbol *Symbol);
|
||||||
virtual void ChangeSection(const MCSection *Section);
|
virtual void ChangeSection(const MCSection *Section);
|
||||||
virtual void EmitInstruction(const MCInst &Inst);
|
virtual void EmitInstruction(const MCInst &Inst);
|
||||||
|
@@ -319,11 +319,9 @@ namespace llvm {
|
|||||||
void EmitAbsValue(const MCExpr *Value, unsigned Size,
|
void EmitAbsValue(const MCExpr *Value, unsigned Size,
|
||||||
unsigned AddrSpace = 0);
|
unsigned AddrSpace = 0);
|
||||||
|
|
||||||
virtual void EmitULEB128Value(const MCExpr *Value,
|
virtual void EmitULEB128Value(const MCExpr *Value) = 0;
|
||||||
unsigned AddrSpace = 0) = 0;
|
|
||||||
|
|
||||||
virtual void EmitSLEB128Value(const MCExpr *Value,
|
virtual void EmitSLEB128Value(const MCExpr *Value) = 0;
|
||||||
unsigned AddrSpace = 0) = 0;
|
|
||||||
|
|
||||||
/// EmitULEB128Value - Special case of EmitULEB128Value that avoids the
|
/// EmitULEB128Value - Special case of EmitULEB128Value that avoids the
|
||||||
/// client having to pass in a MCExpr for constant integers.
|
/// client having to pass in a MCExpr for constant integers.
|
||||||
|
@@ -158,9 +158,9 @@ public:
|
|||||||
virtual void EmitIntValue(uint64_t Value, unsigned Size,
|
virtual void EmitIntValue(uint64_t Value, unsigned Size,
|
||||||
unsigned AddrSpace = 0);
|
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);
|
virtual void EmitGPRel32Value(const MCExpr *Value);
|
||||||
|
|
||||||
@@ -560,10 +560,10 @@ void MCAsmStreamer::EmitValueImpl(const MCExpr *Value, unsigned Size,
|
|||||||
EmitEOL();
|
EmitEOL();
|
||||||
}
|
}
|
||||||
|
|
||||||
void MCAsmStreamer::EmitULEB128Value(const MCExpr *Value, unsigned AddrSpace) {
|
void MCAsmStreamer::EmitULEB128Value(const MCExpr *Value) {
|
||||||
int64_t IntValue;
|
int64_t IntValue;
|
||||||
if (Value->EvaluateAsAbsolute(IntValue)) {
|
if (Value->EvaluateAsAbsolute(IntValue)) {
|
||||||
EmitULEB128IntValue(IntValue, AddrSpace);
|
EmitULEB128IntValue(IntValue);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
assert(MAI.hasLEB128() && "Cannot print a .uleb");
|
assert(MAI.hasLEB128() && "Cannot print a .uleb");
|
||||||
@@ -571,10 +571,10 @@ void MCAsmStreamer::EmitULEB128Value(const MCExpr *Value, unsigned AddrSpace) {
|
|||||||
EmitEOL();
|
EmitEOL();
|
||||||
}
|
}
|
||||||
|
|
||||||
void MCAsmStreamer::EmitSLEB128Value(const MCExpr *Value, unsigned AddrSpace) {
|
void MCAsmStreamer::EmitSLEB128Value(const MCExpr *Value) {
|
||||||
int64_t IntValue;
|
int64_t IntValue;
|
||||||
if (Value->EvaluateAsAbsolute(IntValue)) {
|
if (Value->EvaluateAsAbsolute(IntValue)) {
|
||||||
EmitSLEB128IntValue(IntValue, AddrSpace);
|
EmitSLEB128IntValue(IntValue);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
assert(MAI.hasLEB128() && "Cannot print a .sleb");
|
assert(MAI.hasLEB128() && "Cannot print a .sleb");
|
||||||
|
@@ -541,7 +541,7 @@ void FrameEmitterImpl::EmitCFIInstruction(MCStreamer &Streamer,
|
|||||||
else
|
else
|
||||||
CFAOffset = -Src.getOffset();
|
CFAOffset = -Src.getOffset();
|
||||||
|
|
||||||
Streamer.EmitULEB128IntValue(CFAOffset, 1);
|
Streamer.EmitULEB128IntValue(CFAOffset);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -582,7 +582,7 @@ void FrameEmitterImpl::EmitCFIInstruction(MCStreamer &Streamer,
|
|||||||
case MCCFIInstruction::SameValue: {
|
case MCCFIInstruction::SameValue: {
|
||||||
unsigned Reg = Instr.getDestination().getReg();
|
unsigned Reg = Instr.getDestination().getReg();
|
||||||
Streamer.EmitIntValue(dwarf::DW_CFA_same_value, 1);
|
Streamer.EmitIntValue(dwarf::DW_CFA_same_value, 1);
|
||||||
Streamer.EmitULEB128IntValue(Reg, 1);
|
Streamer.EmitULEB128IntValue(Reg);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -159,16 +159,14 @@ public:
|
|||||||
return Child->EmitValueImpl(Value, Size, isPCRel, AddrSpace);
|
return Child->EmitValueImpl(Value, Size, isPCRel, AddrSpace);
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void EmitULEB128Value(const MCExpr *Value,
|
virtual void EmitULEB128Value(const MCExpr *Value) {
|
||||||
unsigned AddrSpace = 0) {
|
|
||||||
LogCall("EmitULEB128Value");
|
LogCall("EmitULEB128Value");
|
||||||
return Child->EmitULEB128Value(Value, AddrSpace);
|
return Child->EmitULEB128Value(Value);
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void EmitSLEB128Value(const MCExpr *Value,
|
virtual void EmitSLEB128Value(const MCExpr *Value) {
|
||||||
unsigned AddrSpace = 0) {
|
|
||||||
LogCall("EmitSLEB128Value");
|
LogCall("EmitSLEB128Value");
|
||||||
return Child->EmitSLEB128Value(Value, AddrSpace);
|
return Child->EmitSLEB128Value(Value);
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void EmitGPRel32Value(const MCExpr *Value) {
|
virtual void EmitGPRel32Value(const MCExpr *Value) {
|
||||||
|
@@ -68,10 +68,8 @@ namespace {
|
|||||||
|
|
||||||
virtual void EmitValueImpl(const MCExpr *Value, unsigned Size,
|
virtual void EmitValueImpl(const MCExpr *Value, unsigned Size,
|
||||||
bool isPCRel, unsigned AddrSpace) {}
|
bool isPCRel, unsigned AddrSpace) {}
|
||||||
virtual void EmitULEB128Value(const MCExpr *Value,
|
virtual void EmitULEB128Value(const MCExpr *Value) {}
|
||||||
unsigned AddrSpace = 0) {}
|
virtual void EmitSLEB128Value(const MCExpr *Value) {}
|
||||||
virtual void EmitSLEB128Value(const MCExpr *Value,
|
|
||||||
unsigned AddrSpace = 0) {}
|
|
||||||
virtual void EmitGPRel32Value(const MCExpr *Value) {}
|
virtual void EmitGPRel32Value(const MCExpr *Value) {}
|
||||||
virtual void EmitValueToAlignment(unsigned ByteAlignment, int64_t Value = 0,
|
virtual void EmitValueToAlignment(unsigned ByteAlignment, int64_t Value = 0,
|
||||||
unsigned ValueSize = 1,
|
unsigned ValueSize = 1,
|
||||||
|
@@ -124,21 +124,19 @@ void MCObjectStreamer::EmitLabel(MCSymbol *Symbol) {
|
|||||||
SD.setOffset(F->getContents().size());
|
SD.setOffset(F->getContents().size());
|
||||||
}
|
}
|
||||||
|
|
||||||
void MCObjectStreamer::EmitULEB128Value(const MCExpr *Value,
|
void MCObjectStreamer::EmitULEB128Value(const MCExpr *Value) {
|
||||||
unsigned AddrSpace) {
|
|
||||||
int64_t IntValue;
|
int64_t IntValue;
|
||||||
if (Value->EvaluateAsAbsolute(IntValue, getAssembler())) {
|
if (Value->EvaluateAsAbsolute(IntValue, getAssembler())) {
|
||||||
EmitULEB128IntValue(IntValue, AddrSpace);
|
EmitULEB128IntValue(IntValue);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
new MCLEBFragment(*Value, false, getCurrentSectionData());
|
new MCLEBFragment(*Value, false, getCurrentSectionData());
|
||||||
}
|
}
|
||||||
|
|
||||||
void MCObjectStreamer::EmitSLEB128Value(const MCExpr *Value,
|
void MCObjectStreamer::EmitSLEB128Value(const MCExpr *Value) {
|
||||||
unsigned AddrSpace) {
|
|
||||||
int64_t IntValue;
|
int64_t IntValue;
|
||||||
if (Value->EvaluateAsAbsolute(IntValue, getAssembler())) {
|
if (Value->EvaluateAsAbsolute(IntValue, getAssembler())) {
|
||||||
EmitSLEB128IntValue(IntValue, AddrSpace);
|
EmitSLEB128IntValue(IntValue);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
new MCLEBFragment(*Value, true, getCurrentSectionData());
|
new MCLEBFragment(*Value, true, getCurrentSectionData());
|
||||||
|
@@ -144,8 +144,8 @@ public:
|
|||||||
|
|
||||||
virtual void EmitValueImpl(const MCExpr *Value, unsigned Size,
|
virtual void EmitValueImpl(const MCExpr *Value, unsigned Size,
|
||||||
bool isPCRel, unsigned AddrSpace);
|
bool isPCRel, unsigned AddrSpace);
|
||||||
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);
|
virtual void EmitGPRel32Value(const MCExpr *Value);
|
||||||
|
|
||||||
|
|
||||||
@@ -383,15 +383,13 @@ void PTXMCAsmStreamer::EmitValueImpl(const MCExpr *Value, unsigned Size,
|
|||||||
EmitEOL();
|
EmitEOL();
|
||||||
}
|
}
|
||||||
|
|
||||||
void PTXMCAsmStreamer::EmitULEB128Value(const MCExpr *Value,
|
void PTXMCAsmStreamer::EmitULEB128Value(const MCExpr *Value) {
|
||||||
unsigned AddrSpace) {
|
|
||||||
assert(MAI.hasLEB128() && "Cannot print a .uleb");
|
assert(MAI.hasLEB128() && "Cannot print a .uleb");
|
||||||
OS << ".uleb128 " << *Value;
|
OS << ".uleb128 " << *Value;
|
||||||
EmitEOL();
|
EmitEOL();
|
||||||
}
|
}
|
||||||
|
|
||||||
void PTXMCAsmStreamer::EmitSLEB128Value(const MCExpr *Value,
|
void PTXMCAsmStreamer::EmitSLEB128Value(const MCExpr *Value) {
|
||||||
unsigned AddrSpace) {
|
|
||||||
assert(MAI.hasLEB128() && "Cannot print a .sleb");
|
assert(MAI.hasLEB128() && "Cannot print a .sleb");
|
||||||
OS << ".sleb128 " << *Value;
|
OS << ".sleb128 " << *Value;
|
||||||
EmitEOL();
|
EmitEOL();
|
||||||
|
@@ -583,10 +583,8 @@ namespace {
|
|||||||
virtual void EmitBytes(StringRef Data, unsigned AddrSpace) {}
|
virtual void EmitBytes(StringRef Data, unsigned AddrSpace) {}
|
||||||
virtual void EmitValueImpl(const MCExpr *Value, unsigned Size,
|
virtual void EmitValueImpl(const MCExpr *Value, unsigned Size,
|
||||||
bool isPCRel, unsigned AddrSpace) {}
|
bool isPCRel, unsigned AddrSpace) {}
|
||||||
virtual void EmitULEB128Value(const MCExpr *Value,
|
virtual void EmitULEB128Value(const MCExpr *Value) {}
|
||||||
unsigned AddrSpace = 0) {}
|
virtual void EmitSLEB128Value(const MCExpr *Value) {}
|
||||||
virtual void EmitSLEB128Value(const MCExpr *Value,
|
|
||||||
unsigned AddrSpace = 0) {}
|
|
||||||
virtual void EmitValueToAlignment(unsigned ByteAlignment, int64_t Value,
|
virtual void EmitValueToAlignment(unsigned ByteAlignment, int64_t Value,
|
||||||
unsigned ValueSize,
|
unsigned ValueSize,
|
||||||
unsigned MaxBytesToEmit) {}
|
unsigned MaxBytesToEmit) {}
|
||||||
|
Reference in New Issue
Block a user