From 29e004491ee3fa3ff20abc2c305a61680183c342 Mon Sep 17 00:00:00 2001 From: Toma Tabacu Date: Tue, 23 Jun 2015 12:34:19 +0000 Subject: [PATCH] [mips] [IAS] Move some function definitions to MipsTargetStreamer.cpp. NFC. Summary: For the sake of consistency and to make some upcoming changes a little less noisy. Reviewers: dsanders Reviewed By: dsanders Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D10639 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240398 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp | 11 +++++++++++ lib/Target/Mips/MipsTargetStreamer.h | 10 ++-------- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp b/lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp index a051f4c123f..1155d722e17 100644 --- a/lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp +++ b/lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp @@ -92,6 +92,17 @@ void MipsTargetStreamer::emitDirectiveCpLoad(unsigned RegNo) {} void MipsTargetStreamer::emitDirectiveCpsetup(unsigned RegNo, int RegOrOffset, const MCSymbol &Sym, bool IsReg) { } + +void +MipsTargetStreamer::emitDirectiveModuleFP(MipsABIFlagsSection::FpABIKind Value, + bool Is32BitABI) { + ABIFlagsSection.setFpABI(Value, Is32BitABI); +} + +void MipsTargetStreamer::emitDirectiveModuleFP() { + emitDirectiveModuleFP(ABIFlagsSection.getFpABI(), ABIFlagsSection.Is32BitABI); +} + void MipsTargetStreamer::emitDirectiveModuleOddSPReg(bool Enabled, bool IsO32ABI) { if (!Enabled && !IsO32ABI) diff --git a/lib/Target/Mips/MipsTargetStreamer.h b/lib/Target/Mips/MipsTargetStreamer.h index fed06005e9c..8515151c5e9 100644 --- a/lib/Target/Mips/MipsTargetStreamer.h +++ b/lib/Target/Mips/MipsTargetStreamer.h @@ -83,16 +83,10 @@ public: /// Emit a '.module fp=value' directive using the given values. /// Updates the .MIPS.abiflags section virtual void emitDirectiveModuleFP(MipsABIFlagsSection::FpABIKind Value, - bool Is32BitABI) { - ABIFlagsSection.setFpABI(Value, Is32BitABI); - } - + bool Is32BitABI); /// Emit a '.module fp=value' directive using the current values of the /// .MIPS.abiflags section. - void emitDirectiveModuleFP() { - emitDirectiveModuleFP(ABIFlagsSection.getFpABI(), - ABIFlagsSection.Is32BitABI); - } + void emitDirectiveModuleFP(); virtual void emitDirectiveModuleOddSPReg(bool Enabled, bool IsO32ABI); virtual void emitDirectiveSetFp(MipsABIFlagsSection::FpABIKind Value); -- 2.34.1