[mips] [IAS] Refactor the emitDirectiveModuleFP() functions. NFC.
authorToma Tabacu <toma.tabacu@imgtec.com>
Thu, 25 Jun 2015 12:44:38 +0000 (12:44 +0000)
committerToma Tabacu <toma.tabacu@imgtec.com>
Thu, 25 Jun 2015 12:44:38 +0000 (12:44 +0000)
commita64e5405118dca46f87fb6fe83db6314377a4e86
tree516c865da542fdf8b8b61766ce84d94d297fafa3
parent0e21d54b516681edaed00ea7bd15dd0d1ee8bd4a
[mips] [IAS] Refactor the emitDirectiveModuleFP() functions. NFC.

Summary:
Simplify emitDirectiveModuleFP() by having it just print the current information
from MipsABIFlagsSection and doing an updateABIInfo() before such calls.

This prevents us from forgetting to update the STI.FeatureBits,
because updateABIInfo() uses those to update the MipsABIFlagsSection object,
and also makes sure we use the update mechanism from MipsABIFlagsSection.

Reviewers: dsanders

Reviewed By: dsanders

Subscribers: llvm-commits, mpf

Differential Revision: http://reviews.llvm.org/D10642

llvm-svn: 240637
llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp
llvm/lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp
llvm/lib/Target/Mips/MipsTargetStreamer.h