mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-29 10:25:12 +00:00
Replace .mips_hack_stocg with ".set micromips" and ".set nomicromips".
This matches what gnu as does and implementing this is easier than arguing about it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199181 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -265,6 +265,9 @@ const char *MipsAsmPrinter::getCurrentABIString() const {
|
||||
}
|
||||
|
||||
void MipsAsmPrinter::EmitFunctionEntryLabel() {
|
||||
if (Subtarget->inMicroMipsMode())
|
||||
getTargetStreamer().emitDirectiveSetMicroMips();
|
||||
|
||||
if (OutStreamer.hasRawTextSupport()) {
|
||||
if (Subtarget->inMips16Mode())
|
||||
OutStreamer.EmitRawText(StringRef("\t.set\tmips16"));
|
||||
@@ -275,9 +278,6 @@ void MipsAsmPrinter::EmitFunctionEntryLabel() {
|
||||
OutStreamer.EmitRawText("\t.ent\t" + Twine(CurrentFnSym->getName()));
|
||||
}
|
||||
|
||||
if (Subtarget->inMicroMipsMode())
|
||||
getTargetStreamer().emitMipsHackSTOCG(CurrentFnSym,
|
||||
(unsigned)ELF::STO_MIPS_MICROMIPS);
|
||||
OutStreamer.EmitLabel(CurrentFnSym);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user