mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-24 06:30:19 +00:00
switch to the text section at the start of the .s file for darwin/x86
targets. This is a temporary hack for the .o file writer that Daniel wants :) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98413 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9d0b3dda1e
commit
1bd1e6db1d
@ -459,6 +459,11 @@ bool X86AsmPrinter::PrintAsmMemoryOperand(const MachineInstr *MI,
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void X86AsmPrinter::EmitStartOfAsmFile(Module &M) {
|
||||||
|
if (Subtarget->isTargetDarwin())
|
||||||
|
OutStreamer.SwitchSection(getObjFileLowering().getTextSection());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void X86AsmPrinter::EmitEndOfAsmFile(Module &M) {
|
void X86AsmPrinter::EmitEndOfAsmFile(Module &M) {
|
||||||
if (Subtarget->isTargetDarwin()) {
|
if (Subtarget->isTargetDarwin()) {
|
||||||
|
@ -55,6 +55,7 @@ class VISIBILITY_HIDDEN X86AsmPrinter : public AsmPrinter {
|
|||||||
AsmPrinter::getAnalysisUsage(AU);
|
AsmPrinter::getAnalysisUsage(AU);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
virtual void EmitStartOfAsmFile(Module &M);
|
||||||
|
|
||||||
virtual void EmitEndOfAsmFile(Module &M);
|
virtual void EmitEndOfAsmFile(Module &M);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user