[mips] Do not emit '.module fp=...' unless we really need to.
authorDaniel Sanders <daniel.sanders@imgtec.com>
Mon, 21 Jul 2014 15:25:24 +0000 (15:25 +0000)
committerDaniel Sanders <daniel.sanders@imgtec.com>
Mon, 21 Jul 2014 15:25:24 +0000 (15:25 +0000)
commite22244b7334b443a7d261e9355a928000fe70c19
treebdec0c20a17eefaaa107ef38e192c51f3ef7377e
parentf915d67c60d5bdd06f537ce7cc6a54f19352871a
[mips] Do not emit '.module fp=...' unless we really need to.

We now emit this value when we need to contradict the default value. This
restores support for binutils 2.24.

When a suitable binutils has been released we can resume unconditionally
emitting .module directives. This is preferable to omitting the .module
directives since the .module directives protect against, for example,
accidentally assembling FP32 code with -mfp64 and producing an unusuable object.

llvm-svn: 213548
llvm/lib/Target/Mips/MipsAsmPrinter.cpp
llvm/test/CodeGen/Mips/abiflags32.ll