[mips] Add support for '.option pic2'.
authorMatheus Almeida <matheus.almeida@imgtec.com>
Wed, 26 Mar 2014 13:40:29 +0000 (13:40 +0000)
committerMatheus Almeida <matheus.almeida@imgtec.com>
Wed, 26 Mar 2014 13:40:29 +0000 (13:40 +0000)
commit0de31d52d53028a6890210728da23558899078fc
tree8159b685bcca2f004b9895fdcb3a2be8e46e7cf8
parentc4b058f9e7145765783fb741ea280acc4fea1f94
[mips] Add support for '.option pic2'.

The directive '.option pic2' enables PIC from assembly source.
At the moment none of the macros/directives check the PIC bit
but that's going to be fixed relatively soon. For example, the
expansion of macros like 'la' depend on the relocation model.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204803 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/elf_eflags_pic2.s [new file with mode: 0644]
test/MC/Mips/mips_directives_bad.s