mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-17 21:35:07 +00:00
[mips] Rename emit and parse functions for the .cpload assembler directive. NFC.
Summary: It's better if we have a consistent name for .cpload-related functions. Reviewers: dsanders Reviewed By: dsanders Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D5437 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218768 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f7082f9bd7
commit
a2878ec715
@ -180,7 +180,7 @@ class MipsAsmParser : public MCTargetAsmParser {
|
||||
bool parseSetMips0Directive();
|
||||
bool parseSetArchDirective();
|
||||
bool parseSetFeature(uint64_t Feature);
|
||||
bool parseDirectiveCPLoad(SMLoc Loc);
|
||||
bool parseDirectiveCpLoad(SMLoc Loc);
|
||||
bool parseDirectiveCPSetup();
|
||||
bool parseDirectiveNaN();
|
||||
bool parseDirectiveSet();
|
||||
@ -2888,7 +2888,7 @@ bool MipsAsmParser::eatComma(StringRef ErrorStr) {
|
||||
return true;
|
||||
}
|
||||
|
||||
bool MipsAsmParser::parseDirectiveCPLoad(SMLoc Loc) {
|
||||
bool MipsAsmParser::parseDirectiveCpLoad(SMLoc Loc) {
|
||||
if (AssemblerOptions.back()->isReorder())
|
||||
Warning(Loc, ".cpload in reorder section");
|
||||
|
||||
@ -2907,7 +2907,7 @@ bool MipsAsmParser::parseDirectiveCPLoad(SMLoc Loc) {
|
||||
return false;
|
||||
}
|
||||
|
||||
getTargetStreamer().emitDirectiveCpload(RegOpnd.getGPR32Reg());
|
||||
getTargetStreamer().emitDirectiveCpLoad(RegOpnd.getGPR32Reg());
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -3298,7 +3298,7 @@ bool MipsAsmParser::ParseDirective(AsmToken DirectiveID) {
|
||||
StringRef IDVal = DirectiveID.getString();
|
||||
|
||||
if (IDVal == ".cpload")
|
||||
return parseDirectiveCPLoad(DirectiveID.getLoc());
|
||||
return parseDirectiveCpLoad(DirectiveID.getLoc());
|
||||
if (IDVal == ".dword") {
|
||||
parseDataDirective(8, DirectiveID.getLoc());
|
||||
return false;
|
||||
|
@ -75,7 +75,7 @@ void MipsTargetStreamer::emitDirectiveSetPop() {}
|
||||
void MipsTargetStreamer::emitDirectiveSetPush() {}
|
||||
void MipsTargetStreamer::emitDirectiveSetDsp() { forbidModuleDirective(); }
|
||||
void MipsTargetStreamer::emitDirectiveSetNoDsp() { forbidModuleDirective(); }
|
||||
void MipsTargetStreamer::emitDirectiveCpload(unsigned RegNo) {}
|
||||
void MipsTargetStreamer::emitDirectiveCpLoad(unsigned RegNo) {}
|
||||
void MipsTargetStreamer::emitDirectiveCpsetup(unsigned RegNo, int RegOrOffset,
|
||||
const MCSymbol &Sym, bool IsReg) {
|
||||
}
|
||||
@ -278,7 +278,7 @@ void MipsTargetAsmStreamer::emitFMask(unsigned FPUBitmask,
|
||||
OS << "," << FPUTopSavedRegOff << '\n';
|
||||
}
|
||||
|
||||
void MipsTargetAsmStreamer::emitDirectiveCpload(unsigned RegNo) {
|
||||
void MipsTargetAsmStreamer::emitDirectiveCpLoad(unsigned RegNo) {
|
||||
OS << "\t.cpload\t$"
|
||||
<< StringRef(MipsInstPrinter::getRegisterName(RegNo)).lower() << "\n";
|
||||
forbidModuleDirective();
|
||||
@ -597,7 +597,7 @@ void MipsTargetELFStreamer::emitFMask(unsigned FPUBitmask,
|
||||
FPROffset = FPUTopSavedRegOff;
|
||||
}
|
||||
|
||||
void MipsTargetELFStreamer::emitDirectiveCpload(unsigned RegNo) {
|
||||
void MipsTargetELFStreamer::emitDirectiveCpLoad(unsigned RegNo) {
|
||||
// .cpload $reg
|
||||
// This directive expands to:
|
||||
// lui $gp, %hi(_gp_disp)
|
||||
|
@ -67,7 +67,7 @@ public:
|
||||
virtual void emitDirectiveSetPush();
|
||||
|
||||
// PIC support
|
||||
virtual void emitDirectiveCpload(unsigned RegNo);
|
||||
virtual void emitDirectiveCpLoad(unsigned RegNo);
|
||||
virtual void emitDirectiveCpsetup(unsigned RegNo, int RegOrOffset,
|
||||
const MCSymbol &Sym, bool IsReg);
|
||||
|
||||
@ -171,7 +171,7 @@ public:
|
||||
void emitDirectiveSetPush() override;
|
||||
|
||||
// PIC support
|
||||
void emitDirectiveCpload(unsigned RegNo) override;
|
||||
void emitDirectiveCpLoad(unsigned RegNo) override;
|
||||
void emitDirectiveCpsetup(unsigned RegNo, int RegOrOffset,
|
||||
const MCSymbol &Sym, bool IsReg) override;
|
||||
|
||||
@ -217,7 +217,7 @@ public:
|
||||
void emitFMask(unsigned FPUBitmask, int FPUTopSavedRegOff) override;
|
||||
|
||||
// PIC support
|
||||
void emitDirectiveCpload(unsigned RegNo) override;
|
||||
void emitDirectiveCpLoad(unsigned RegNo) override;
|
||||
void emitDirectiveCpsetup(unsigned RegNo, int RegOrOffset,
|
||||
const MCSymbol &Sym, bool IsReg) override;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user