mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-04 01:51:31 +00:00
There is no need to use .set here.
Thanks Chris! llvm-svn: 112900
This commit is contained in:
parent
fad92eae5f
commit
e431686861
@ -1232,14 +1232,7 @@ void AsmPrinter::EmitLabelPlusOffset(const MCSymbol *Label, uint64_t Offset,
|
||||
MCConstantExpr::Create(Offset, OutContext),
|
||||
OutContext);
|
||||
|
||||
if (!MAI->hasSetDirective())
|
||||
OutStreamer.EmitValue(Plus, 4, 0/*AddrSpace*/);
|
||||
else {
|
||||
// Otherwise, emit with .set (aka assignment).
|
||||
MCSymbol *SetLabel = GetTempSymbol("set", SetCounter++);
|
||||
OutStreamer.EmitAssignment(SetLabel, Plus);
|
||||
OutStreamer.EmitSymbolValue(SetLabel, 4, 0/*AddrSpace*/);
|
||||
}
|
||||
OutStreamer.EmitValue(Plus, 4, 0/*AddrSpace*/);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user