mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-05 11:57:07 +00:00
Until uleb/sleb are MC-ized, add a hack to make them work with ELF object
emission. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111177 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f8020a3978
commit
0b95fdbd6f
@ -36,7 +36,7 @@ void AsmPrinter::EmitSLEB128(int Value, const char *Desc) const {
|
||||
if (isVerbose() && Desc)
|
||||
OutStreamer.AddComment(Desc);
|
||||
|
||||
if (MAI->hasLEB128()) {
|
||||
if (MAI->hasLEB128() && OutStreamer.hasRawTextSupport()) {
|
||||
// FIXME: MCize.
|
||||
OutStreamer.EmitRawText("\t.sleb128\t" + Twine(Value));
|
||||
return;
|
||||
@ -61,7 +61,7 @@ void AsmPrinter::EmitULEB128(unsigned Value, const char *Desc,
|
||||
if (isVerbose() && Desc)
|
||||
OutStreamer.AddComment(Desc);
|
||||
|
||||
if (MAI->hasLEB128() && PadTo == 0) {
|
||||
if (MAI->hasLEB128() && PadTo == 0 && OutStreamer.hasRawTextSupport()) {
|
||||
// FIXME: MCize.
|
||||
OutStreamer.EmitRawText("\t.uleb128\t" + Twine(Value));
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user