mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01: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 :) llvm-svn: 98413
This commit is contained in:
parent
5dea722948
commit
14eafddc99
@ -459,6 +459,11 @@ bool X86AsmPrinter::PrintAsmMemoryOperand(const MachineInstr *MI,
|
||||
return false;
|
||||
}
|
||||
|
||||
void X86AsmPrinter::EmitStartOfAsmFile(Module &M) {
|
||||
if (Subtarget->isTargetDarwin())
|
||||
OutStreamer.SwitchSection(getObjFileLowering().getTextSection());
|
||||
}
|
||||
|
||||
|
||||
void X86AsmPrinter::EmitEndOfAsmFile(Module &M) {
|
||||
if (Subtarget->isTargetDarwin()) {
|
||||
|
@ -55,7 +55,8 @@ class VISIBILITY_HIDDEN X86AsmPrinter : public AsmPrinter {
|
||||
AsmPrinter::getAnalysisUsage(AU);
|
||||
}
|
||||
|
||||
|
||||
virtual void EmitStartOfAsmFile(Module &M);
|
||||
|
||||
virtual void EmitEndOfAsmFile(Module &M);
|
||||
|
||||
virtual void EmitInstruction(const MachineInstr *MI);
|
||||
|
Loading…
Reference in New Issue
Block a user