mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 06:25:18 +00:00
[Mips] TargetStreamer Support for .abicalls and .set pic0.
This patch adds .abicalls and .set pic0 support which affects the ELF ABI and its flags. In addition the patch uses a common interface for both the MipsTargetSteamer and MipsObjectStreamer that both the integrated and standalone assemblers will use for the output for these directives. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198646 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -608,12 +608,10 @@ void MipsAsmPrinter::EmitStartOfAsmFile(Module &M) {
|
||||
|
||||
// TODO: Need to add -mabicalls and -mno-abicalls flags.
|
||||
// Currently we assume that -mabicalls is the default.
|
||||
if (OutStreamer.hasRawTextSupport()) {
|
||||
OutStreamer.EmitRawText(StringRef("\t.abicalls"));
|
||||
Reloc::Model RM = Subtarget->getRelocationModel();
|
||||
if (RM == Reloc::Static && !Subtarget->hasMips64())
|
||||
OutStreamer.EmitRawText(StringRef("\t.option\tpic0"));
|
||||
}
|
||||
getTargetStreamer().emitDirectiveAbiCalls();
|
||||
Reloc::Model RM = Subtarget->getRelocationModel();
|
||||
if (RM == Reloc::Static && !Subtarget->hasMips64())
|
||||
getTargetStreamer().emitDirectiveOptionPic0();
|
||||
|
||||
// Tell the assembler which ABI we are using
|
||||
if (OutStreamer.hasRawTextSupport())
|
||||
|
Reference in New Issue
Block a user