There is no need to use .set here.

Thanks Chris!

llvm-svn: 112900
This commit is contained in:
Devang Patel 2010-09-02 23:01:10 +00:00
parent fad92eae5f
commit e431686861

View File

@ -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*/);
}