1//===-- PPCMCAsmInfo.cpp - PPC asm properties -----------------------------===// 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//===----------------------------------------------------------------------===// 9// 10// This file contains the declarations of the MCAsmInfoDarwin properties. 11// 12//===----------------------------------------------------------------------===// 13 14#include "PPCMCAsmInfo.h"
| 1//===-- PPCMCAsmInfo.cpp - PPC asm properties -----------------------------===// 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//===----------------------------------------------------------------------===// 9// 10// This file contains the declarations of the MCAsmInfoDarwin properties. 11// 12//===----------------------------------------------------------------------===// 13 14#include "PPCMCAsmInfo.h"
|
| 15#include "llvm/ADT/Triple.h" 16
|
15using namespace llvm; 16 17void PPCMCAsmInfoDarwin::anchor() { } 18
| 17using namespace llvm; 18 19void PPCMCAsmInfoDarwin::anchor() { } 20
|
| 21/// This version of the constructor is here to maintain ABI compatibility with 22/// LLVM 3.4.0
|
19PPCMCAsmInfoDarwin::PPCMCAsmInfoDarwin(bool is64Bit) { 20 if (is64Bit) { 21 PointerSize = CalleeSaveStackSlotSize = 8; 22 } 23 IsLittleEndian = false; 24 25 CommentString = ";"; 26 ExceptionsType = ExceptionHandling::DwarfCFI; 27 28 if (!is64Bit) 29 Data64bitsDirective = 0; // We can't emit a 64-bit unit in PPC32 mode. 30 31 AssemblerDialect = 1; // New-Style mnemonics. 32 SupportsDebugInformation= true; // Debug information. 33} 34
| 23PPCMCAsmInfoDarwin::PPCMCAsmInfoDarwin(bool is64Bit) { 24 if (is64Bit) { 25 PointerSize = CalleeSaveStackSlotSize = 8; 26 } 27 IsLittleEndian = false; 28 29 CommentString = ";"; 30 ExceptionsType = ExceptionHandling::DwarfCFI; 31 32 if (!is64Bit) 33 Data64bitsDirective = 0; // We can't emit a 64-bit unit in PPC32 mode. 34 35 AssemblerDialect = 1; // New-Style mnemonics. 36 SupportsDebugInformation= true; // Debug information. 37} 38
|
| 39PPCMCAsmInfoDarwin::PPCMCAsmInfoDarwin(bool is64Bit, const Triple& T) { 40 if (is64Bit) { 41 PointerSize = CalleeSaveStackSlotSize = 8; 42 } 43 IsLittleEndian = false; 44 45 CommentString = ";"; 46 ExceptionsType = ExceptionHandling::DwarfCFI; 47 48 if (!is64Bit) 49 Data64bitsDirective = 0; // We can't emit a 64-bit unit in PPC32 mode. 50 51 AssemblerDialect = 1; // New-Style mnemonics. 52 SupportsDebugInformation= true; // Debug information. 53 54 // old assembler lacks some directives 55 // FIXME: this should really be a check on the assembler characteristics 56 // rather than OS version 57 if (T.isMacOSX() && T.isMacOSXVersionLT(10, 6)) 58 HasWeakDefCanBeHiddenDirective = false; 59} 60
|
35void PPCLinuxMCAsmInfo::anchor() { } 36 37PPCLinuxMCAsmInfo::PPCLinuxMCAsmInfo(bool is64Bit) { 38 if (is64Bit) { 39 PointerSize = CalleeSaveStackSlotSize = 8; 40 } 41 IsLittleEndian = false; 42
--- 27 unchanged lines hidden --- | 61void PPCLinuxMCAsmInfo::anchor() { } 62 63PPCLinuxMCAsmInfo::PPCLinuxMCAsmInfo(bool is64Bit) { 64 if (is64Bit) { 65 PointerSize = CalleeSaveStackSlotSize = 8; 66 } 67 IsLittleEndian = false; 68
--- 27 unchanged lines hidden --- |