[mips] Do not emit '.module [no]oddspreg' unless we really need to.
authorDaniel Sanders <daniel.sanders@imgtec.com>
Mon, 21 Jul 2014 10:45:47 +0000 (10:45 +0000)
committerDaniel Sanders <daniel.sanders@imgtec.com>
Mon, 21 Jul 2014 10:45:47 +0000 (10:45 +0000)
commit8ecdc6d34ff0904e4b523f2a788db6b228dfacb5
tree5bf40ed15a4937d267be631e366652f94f63ea4d
parent80a15c2ff3aad6b7a2286a88c2f4f2d46eb4b5c5
[mips] Do not emit '.module [no]oddspreg' unless we really need to.

We now emit this directive when we need to contradict the default value (e.g.
-mno-odd-spreg is given) or an option changed the default value (e.g. -mfpxx
is given).

This restores support for the currently available head of binutils. However,
at this point binutils 2.24 is still not sufficient since it does not support
'.module fp=...'.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213511 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/MipsAsmPrinter.cpp
test/CodeGen/Mips/no-odd-spreg.ll