mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-12 15:51:35 +00:00
MCize.
llvm-svn: 118249
This commit is contained in:
parent
6c1b802673
commit
afb48cd73d
@ -36,9 +36,8 @@ void AsmPrinter::EmitSLEB128(int Value, const char *Desc) const {
|
||||
if (isVerbose() && Desc)
|
||||
OutStreamer.AddComment(Desc);
|
||||
|
||||
if (MAI->hasLEB128() && OutStreamer.hasRawTextSupport()) {
|
||||
// FIXME: MCize.
|
||||
OutStreamer.EmitRawText("\t.sleb128\t" + Twine(Value));
|
||||
if (MAI->hasLEB128()) {
|
||||
OutStreamer.EmitSLEB128IntValue(Value);
|
||||
return;
|
||||
}
|
||||
|
||||
@ -60,10 +59,10 @@ void AsmPrinter::EmitULEB128(unsigned Value, const char *Desc,
|
||||
unsigned PadTo) const {
|
||||
if (isVerbose() && Desc)
|
||||
OutStreamer.AddComment(Desc);
|
||||
|
||||
if (MAI->hasLEB128() && PadTo == 0 && OutStreamer.hasRawTextSupport()) {
|
||||
// FIXME: MCize.
|
||||
OutStreamer.EmitRawText("\t.uleb128\t" + Twine(Value));
|
||||
|
||||
// FIXME: Should we add a PadTo option to the streamer?
|
||||
if (MAI->hasLEB128() && PadTo == 0) {
|
||||
OutStreamer.EmitULEB128IntValue(Value);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user