[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)
commitf03400827bd486554eebcb9e4049fb64111a8dc4
treeec766902eda4dd3667ecfc4ff2ce82349bd8ac06
parentb4a6282e4b5ed541d59331ab9b32faf88c0b6ae5
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240630 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/AsmParser/MipsAsmParser.cpp
lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp
lib/Target/Mips/MipsAsmPrinter.cpp
lib/Target/Mips/MipsTargetStreamer.h