[mips] [IAS] Fix using .cpsetup with local labels (PR22518).
authorToma Tabacu <toma.tabacu@imgtec.com>
Wed, 18 Feb 2015 13:46:53 +0000 (13:46 +0000)
committerToma Tabacu <toma.tabacu@imgtec.com>
Wed, 18 Feb 2015 13:46:53 +0000 (13:46 +0000)
commit227affe4050af034578e47e871fa39eeb6d49e08
treea1867a2c6b56c7ee77767272165fc46d0cb96958
parenta5cc501201bdc2557cf2cfd917c7f9fae5618727
[mips] [IAS] Fix using .cpsetup with local labels (PR22518).

Summary:
Parse for an MCExpr instead of an Identifier and use the symbol for relocations, not just the symbol's name.

This fixes errors when using local labels in .cpsetup (PR22518).

Reviewers: dsanders

Reviewed By: dsanders

Subscribers: seanbruno, emaste, llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229671 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/AsmParser/MipsAsmParser.cpp
lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp
test/MC/Mips/cpsetup-bad.s
test/MC/Mips/cpsetup.s