mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-11 06:06:52 +00:00
Until uleb/sleb are MC-ized, add a hack to make them work with ELF object
emission. llvm-svn: 111177
This commit is contained in:
parent
d2c0d2d0bb
commit
fb8b05726f
@ -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