[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)
commit2479def7567aab4da0d89e9416bac9627ecf757a
tree70ed20eb650bf3ddd3b66594ec421def9017ce30
parentaac33cfc08baaa8e19994fc58a302804328114ca
[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.

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