mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
[mips] [IAS] Preserve microMIPS label marking for objects when assigning.
Summary: Previously, this was only happening for functions, but because of .insn, objects can also be marked now. Reviewers: dsanders Reviewed By: dsanders Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D8007 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235095 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ceb5df1992
commit
9f8549a4a0
@ -513,9 +513,8 @@ void MipsTargetELFStreamer::emitAssignment(MCSymbol *Symbol,
|
||||
const MCSymbol &RhsSym =
|
||||
static_cast<const MCSymbolRefExpr *>(Value)->getSymbol();
|
||||
MCSymbolData &Data = getStreamer().getOrCreateSymbolData(&RhsSym);
|
||||
uint8_t Type = MCELF::GetType(Data);
|
||||
if ((Type != ELF::STT_FUNC) ||
|
||||
!(MCELF::getOther(Data) & (ELF::STO_MIPS_MICROMIPS >> 2)))
|
||||
|
||||
if (!(MCELF::getOther(Data) & (ELF::STO_MIPS_MICROMIPS >> 2)))
|
||||
return;
|
||||
|
||||
MCSymbolData &SymbolData = getStreamer().getOrCreateSymbolData(Symbol);
|
||||
|
@ -14,3 +14,15 @@ f:
|
||||
nop
|
||||
.globl bar
|
||||
bar = f
|
||||
|
||||
# CHECK: Name: foo
|
||||
# CHECK: Other: 128
|
||||
.type o,@object
|
||||
.set micromips
|
||||
o:
|
||||
.insn
|
||||
.word 0x00000000
|
||||
.set nomicromips
|
||||
|
||||
.globl foo
|
||||
foo = o
|
||||
|
Loading…
Reference in New Issue
Block a user