[mips] [IAS] Fix LA with relative label operands.
authorToma Tabacu <toma.tabacu@imgtec.com>
Wed, 17 Jun 2015 12:30:37 +0000 (12:30 +0000)
committerToma Tabacu <toma.tabacu@imgtec.com>
Wed, 17 Jun 2015 12:30:37 +0000 (12:30 +0000)
commit87f93f5387d824a0883207453be7cc7d13db877a
tree52266786a714355e382d39e31ed18d00d58c4c44
parentd3b8136e1dc003fe13de00af898dfb377bdce824
[mips] [IAS] Fix LA with relative label operands.

Summary:
Call MCSymbolRefExpr::create() with a MCSymbol* argument, not with a StringRef
of the Symbol's name, in order to avoid creating invalid temporary symbols for
relative labels (e.g. {$,.L}tmp00, {$,.L}tmp10 etc.).

Reviewers: dsanders

Reviewed By: dsanders

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D10498

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239901 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/AsmParser/MipsAsmParser.cpp
test/MC/Mips/mips-expansions.s