mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 06:29:05 +00:00
Bug#834 ICE (crash in code generator?) when building PCH .
Missing Darwin check in Intel ATT ASM printer. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29204 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -26,9 +26,11 @@ using namespace llvm;
|
|||||||
/// method to print assembly for each instruction.
|
/// method to print assembly for each instruction.
|
||||||
///
|
///
|
||||||
bool X86ATTAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
|
bool X86ATTAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
|
||||||
|
if (Subtarget->TargetType == X86Subtarget::isDarwin) {
|
||||||
// Let PassManager know we need debug information and relay
|
// Let PassManager know we need debug information and relay
|
||||||
// the MachineDebugInfo address on to DwarfWriter.
|
// the MachineDebugInfo address on to DwarfWriter.
|
||||||
DW.SetDebugInfo(&getAnalysis<MachineDebugInfo>());
|
DW.SetDebugInfo(&getAnalysis<MachineDebugInfo>());
|
||||||
|
}
|
||||||
|
|
||||||
SetupMachineFunction(MF);
|
SetupMachineFunction(MF);
|
||||||
O << "\n\n";
|
O << "\n\n";
|
||||||
|
Reference in New Issue
Block a user