mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-23 06:21:11 +00:00
Revert previous patch. Some targets don't support uleb and say
they do :-( git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118250 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
40f6514ff0
commit
537ebeaffc
@ -36,8 +36,9 @@ void AsmPrinter::EmitSLEB128(int Value, const char *Desc) const {
|
|||||||
if (isVerbose() && Desc)
|
if (isVerbose() && Desc)
|
||||||
OutStreamer.AddComment(Desc);
|
OutStreamer.AddComment(Desc);
|
||||||
|
|
||||||
if (MAI->hasLEB128()) {
|
if (MAI->hasLEB128() && OutStreamer.hasRawTextSupport()) {
|
||||||
OutStreamer.EmitSLEB128IntValue(Value);
|
// FIXME: MCize.
|
||||||
|
OutStreamer.EmitRawText("\t.sleb128\t" + Twine(Value));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -59,10 +60,10 @@ void AsmPrinter::EmitULEB128(unsigned Value, const char *Desc,
|
|||||||
unsigned PadTo) const {
|
unsigned PadTo) const {
|
||||||
if (isVerbose() && Desc)
|
if (isVerbose() && Desc)
|
||||||
OutStreamer.AddComment(Desc);
|
OutStreamer.AddComment(Desc);
|
||||||
|
|
||||||
// FIXME: Should we add a PadTo option to the streamer?
|
if (MAI->hasLEB128() && PadTo == 0 && OutStreamer.hasRawTextSupport()) {
|
||||||
if (MAI->hasLEB128() && PadTo == 0) {
|
// FIXME: MCize.
|
||||||
OutStreamer.EmitULEB128IntValue(Value);
|
OutStreamer.EmitRawText("\t.uleb128\t" + Twine(Value));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user