mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 06:29:05 +00:00
Add 118023 back, but with proper spelling for .uleb128/.sleb128.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118254 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -36,9 +36,8 @@ void AsmPrinter::EmitSLEB128(int Value, const char *Desc) const {
|
|||||||
if (isVerbose() && Desc)
|
if (isVerbose() && Desc)
|
||||||
OutStreamer.AddComment(Desc);
|
OutStreamer.AddComment(Desc);
|
||||||
|
|
||||||
if (MAI->hasLEB128() && OutStreamer.hasRawTextSupport()) {
|
if (MAI->hasLEB128()) {
|
||||||
// FIXME: MCize.
|
OutStreamer.EmitSLEB128IntValue(Value);
|
||||||
OutStreamer.EmitRawText("\t.sleb128\t" + Twine(Value));
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -61,9 +60,9 @@ void AsmPrinter::EmitULEB128(unsigned Value, const char *Desc,
|
|||||||
if (isVerbose() && Desc)
|
if (isVerbose() && Desc)
|
||||||
OutStreamer.AddComment(Desc);
|
OutStreamer.AddComment(Desc);
|
||||||
|
|
||||||
if (MAI->hasLEB128() && PadTo == 0 && OutStreamer.hasRawTextSupport()) {
|
// FIXME: Should we add a PadTo option to the streamer?
|
||||||
// FIXME: MCize.
|
if (MAI->hasLEB128() && PadTo == 0) {
|
||||||
OutStreamer.EmitRawText("\t.uleb128\t" + Twine(Value));
|
OutStreamer.EmitULEB128IntValue(Value);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -512,12 +512,14 @@ void MCAsmStreamer::EmitValue(const MCExpr *Value, unsigned Size,
|
|||||||
}
|
}
|
||||||
|
|
||||||
void MCAsmStreamer::EmitULEB128Value(const MCExpr *Value, unsigned AddrSpace) {
|
void MCAsmStreamer::EmitULEB128Value(const MCExpr *Value, unsigned AddrSpace) {
|
||||||
OS << ".uleb " << *Value;
|
assert(MAI.hasLEB128() && "Cannot print a .uleb");
|
||||||
|
OS << ".uleb128 " << *Value;
|
||||||
EmitEOL();
|
EmitEOL();
|
||||||
}
|
}
|
||||||
|
|
||||||
void MCAsmStreamer::EmitSLEB128Value(const MCExpr *Value, unsigned AddrSpace) {
|
void MCAsmStreamer::EmitSLEB128Value(const MCExpr *Value, unsigned AddrSpace) {
|
||||||
OS << ".sleb " << *Value;
|
assert(MAI.hasLEB128() && "Cannot print a .sleb");
|
||||||
|
OS << ".sleb128 " << *Value;
|
||||||
EmitEOL();
|
EmitEOL();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user