mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
[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
This commit is contained in:
@@ -747,8 +747,7 @@ void MipsAsmPrinter::EmitStartOfAsmFile(Module &M) {
|
||||
// accept it. We therefore emit it when it contradicts the default or an
|
||||
// option has changed the default (i.e. FPXX) and omit it otherwise.
|
||||
if (ABI.IsO32() && (!STI.useOddSPReg() || STI.isABI_FPXX()))
|
||||
getTargetStreamer().emitDirectiveModuleOddSPReg(STI.useOddSPReg(),
|
||||
ABI.IsO32());
|
||||
getTargetStreamer().emitDirectiveModuleOddSPReg();
|
||||
}
|
||||
|
||||
void MipsAsmPrinter::emitInlineAsmStart() const {
|
||||
|
Reference in New Issue
Block a user