1 //===-- PPCMCAsmInfo.cpp - PPC asm properties -----------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file contains the declarations of the MCAsmInfoDarwin properties.
12 //===----------------------------------------------------------------------===//
14 #include "PPCMCAsmInfo.h"
17 void PPCMCAsmInfoDarwin::anchor() { }
19 PPCMCAsmInfoDarwin::PPCMCAsmInfoDarwin(bool is64Bit) {
22 IsLittleEndian = false;
26 ExceptionsType = ExceptionHandling::DwarfCFI;
29 Data64bitsDirective = 0; // We can't emit a 64-bit unit in PPC32 mode.
31 AssemblerDialect = 1; // New-Style mnemonics.
32 SupportsDebugInformation= true; // Debug information.
35 void PPCLinuxMCAsmInfo::anchor() { }
37 PPCLinuxMCAsmInfo::PPCLinuxMCAsmInfo(bool is64Bit) {
40 IsLittleEndian = false;
42 // ".comm align is in bytes but .align is pow-2."
43 AlignmentIsInBytes = false;
47 PrivateGlobalPrefix = ".L";
48 WeakRefDirective = "\t.weak\t";
50 // Uses '.section' before '.bss' directive
51 UsesELFSectionDirectiveForBSS = true;
54 SupportsDebugInformation = true;
58 // Set up DWARF directives
59 HasLEB128 = true; // Target asm supports leb128 directives (little-endian)
61 // Exceptions handling
62 ExceptionsType = ExceptionHandling::DwarfCFI;
64 ZeroDirective = "\t.space\t";
65 Data64bitsDirective = is64Bit ? "\t.quad\t" : 0;
66 AssemblerDialect = 0; // Old-Style mnemonics.