PPCMCTargetDesc.cpp (263508) | PPCMCTargetDesc.cpp (266715) |
---|---|
1//===-- PPCMCTargetDesc.cpp - PowerPC Target Descriptions -----------------===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// --- 58 unchanged lines hidden (view full) --- 67 68static MCAsmInfo *createPPCMCAsmInfo(const MCRegisterInfo &MRI, StringRef TT) { 69 Triple TheTriple(TT); 70 bool isPPC64 = (TheTriple.getArch() == Triple::ppc64 || 71 TheTriple.getArch() == Triple::ppc64le); 72 73 MCAsmInfo *MAI; 74 if (TheTriple.isOSDarwin()) | 1//===-- PPCMCTargetDesc.cpp - PowerPC Target Descriptions -----------------===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// --- 58 unchanged lines hidden (view full) --- 67 68static MCAsmInfo *createPPCMCAsmInfo(const MCRegisterInfo &MRI, StringRef TT) { 69 Triple TheTriple(TT); 70 bool isPPC64 = (TheTriple.getArch() == Triple::ppc64 || 71 TheTriple.getArch() == Triple::ppc64le); 72 73 MCAsmInfo *MAI; 74 if (TheTriple.isOSDarwin()) |
75 MAI = new PPCMCAsmInfoDarwin(isPPC64); | 75 MAI = new PPCMCAsmInfoDarwin(isPPC64, TheTriple); |
76 else 77 MAI = new PPCLinuxMCAsmInfo(isPPC64); 78 79 // Initial state of the frame pointer is R1. 80 unsigned Reg = isPPC64 ? PPC::X1 : PPC::R1; 81 MCCFIInstruction Inst = 82 MCCFIInstruction::createDefCfa(0, MRI.getDwarfRegNum(Reg, true), 0); 83 MAI->addInitialFrameState(Inst); --- 143 unchanged lines hidden --- | 76 else 77 MAI = new PPCLinuxMCAsmInfo(isPPC64); 78 79 // Initial state of the frame pointer is R1. 80 unsigned Reg = isPPC64 ? PPC::X1 : PPC::R1; 81 MCCFIInstruction Inst = 82 MCCFIInstruction::createDefCfa(0, MRI.getDwarfRegNum(Reg, true), 0); 83 MAI->addInitialFrameState(Inst); --- 143 unchanged lines hidden --- |