mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
[mips] [IAS] Refactor MipsTargetStreamer::emitMipsAbiFlags(). NFC.
Summary: Make emitMipsAbiFlags a direct member of MipsTargetELFStreamer, as that's the only place where it's used, and remove the empty implementations from MipsTargetStreamer and MipsTargetAsmStreamer. Reviewers: dsanders, rafael Reviewed By: rafael Subscribers: rafael, llvm-commits Differential Revision: http://reviews.llvm.org/D8199 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232161 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c20535dff6
commit
4716d39f4d
@ -366,10 +366,6 @@ void MipsTargetAsmStreamer::emitDirectiveSetFp(
|
|||||||
OS << ABIFlagsSection.getFpABIString(Value) << "\n";
|
OS << ABIFlagsSection.getFpABIString(Value) << "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
void MipsTargetAsmStreamer::emitMipsAbiFlags() {
|
|
||||||
// No action required for text output.
|
|
||||||
}
|
|
||||||
|
|
||||||
void MipsTargetAsmStreamer::emitDirectiveModuleOddSPReg(bool Enabled,
|
void MipsTargetAsmStreamer::emitDirectiveModuleOddSPReg(bool Enabled,
|
||||||
bool IsO32ABI) {
|
bool IsO32ABI) {
|
||||||
MipsTargetStreamer::emitDirectiveModuleOddSPReg(Enabled, IsO32ABI);
|
MipsTargetStreamer::emitDirectiveModuleOddSPReg(Enabled, IsO32ABI);
|
||||||
|
@ -93,7 +93,6 @@ public:
|
|||||||
|
|
||||||
virtual void emitDirectiveModuleOddSPReg(bool Enabled, bool IsO32ABI);
|
virtual void emitDirectiveModuleOddSPReg(bool Enabled, bool IsO32ABI);
|
||||||
virtual void emitDirectiveSetFp(MipsABIFlagsSection::FpABIKind Value);
|
virtual void emitDirectiveSetFp(MipsABIFlagsSection::FpABIKind Value);
|
||||||
virtual void emitMipsAbiFlags(){};
|
|
||||||
void forbidModuleDirective() { ModuleDirectiveAllowed = false; }
|
void forbidModuleDirective() { ModuleDirectiveAllowed = false; }
|
||||||
void reallowModuleDirective() { ModuleDirectiveAllowed = true; }
|
void reallowModuleDirective() { ModuleDirectiveAllowed = true; }
|
||||||
bool isModuleDirectiveAllowed() { return ModuleDirectiveAllowed; }
|
bool isModuleDirectiveAllowed() { return ModuleDirectiveAllowed; }
|
||||||
@ -198,7 +197,6 @@ public:
|
|||||||
bool Is32BitABI) override;
|
bool Is32BitABI) override;
|
||||||
void emitDirectiveModuleOddSPReg(bool Enabled, bool IsO32ABI) override;
|
void emitDirectiveModuleOddSPReg(bool Enabled, bool IsO32ABI) override;
|
||||||
void emitDirectiveSetFp(MipsABIFlagsSection::FpABIKind Value) override;
|
void emitDirectiveSetFp(MipsABIFlagsSection::FpABIKind Value) override;
|
||||||
void emitMipsAbiFlags() override;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// This part is for ELF object output
|
// This part is for ELF object output
|
||||||
@ -241,7 +239,7 @@ public:
|
|||||||
|
|
||||||
// ABI Flags
|
// ABI Flags
|
||||||
void emitDirectiveModuleOddSPReg(bool Enabled, bool IsO32ABI) override;
|
void emitDirectiveModuleOddSPReg(bool Enabled, bool IsO32ABI) override;
|
||||||
void emitMipsAbiFlags() override;
|
void emitMipsAbiFlags();
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user