[mips] [IAS] Refactor the emitDirectiveModuleOddSPReg() functions. NFC.
authorToma Tabacu <toma.tabacu@imgtec.com>
Thu, 25 Jun 2015 10:56:57 +0000 (10:56 +0000)
committerToma Tabacu <toma.tabacu@imgtec.com>
Thu, 25 Jun 2015 10:56:57 +0000 (10:56 +0000)
commit3c499589454d61f7ab0cd2179c8af80543eef24c
treeeb4a79227750e41b5acc6df31fec4c0cbc60e5f9
parent0dda16464438c95fbd935512b1cf025f08df3ee6
[mips] [IAS] Refactor the emitDirectiveModuleOddSPReg() functions. NFC.

Summary:
We can simplify emitDirectiveModuleOddSPReg() by having it print the current OddSPReg 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/D10641

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