[mips] Move expansion of .cpsetup to target streamer.
authorMatheus Almeida <matheus.almeida@imgtec.com>
Thu, 1 May 2014 10:24:46 +0000 (10:24 +0000)
committerMatheus Almeida <matheus.almeida@imgtec.com>
Thu, 1 May 2014 10:24:46 +0000 (10:24 +0000)
commit4c715625d964ee56ab667c502fe0c68b807a1015
tree505eff893e9845b93ef1f73e4486f7e79140fb70
parent873f87c2dec04f03682543ef71ef286a8f2389b7
[mips] Move expansion of .cpsetup to target streamer.

Summary:
There are two functional changes:
1) The directive is not expanded for the ASM->ASM code path.
2) If PIC is not set, there's no expansion for the ASM->OBJ code path (same behaviour as GAS).

Reviewers: dsanders

Reviewed By: dsanders

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

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