[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)
commitd7c279604551c091290fc8e5dadb26142ebef459
tree623e024dcd8c72ee6fe3044cfc911a794448f8ae
parentd9ed09f7a5f149ea3ed7904f83ed70bf12963842
[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=...'.

llvm-svn: 213511
llvm/lib/Target/Mips/MipsAsmPrinter.cpp
llvm/test/CodeGen/Mips/no-odd-spreg.ll