1 //===-- PPCMCAsmInfo.cpp - PPC asm properties -------------------*- C++ -*-===//
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 PPCMCAsmInfoDarwin::PPCMCAsmInfoDarwin(bool is64Bit) {
20 IsLittleEndian = false;
24 ExceptionsType = ExceptionHandling::DwarfCFI;
27 Data64bitsDirective = 0; // We can't emit a 64-bit unit in PPC32 mode.
29 AssemblerDialect = 1; // New-Style mnemonics.
30 SupportsDebugInformation= true; // Debug information.
33 PPCLinuxMCAsmInfo::PPCLinuxMCAsmInfo(bool is64Bit) {
34 // ".comm align is in bytes but .align is pow-2."
35 AlignmentIsInBytes = false;
39 PrivateGlobalPrefix = ".L";
40 WeakRefDirective = "\t.weak\t";
42 // Uses '.section' before '.bss' directive
43 UsesELFSectionDirectiveForBSS = true;
46 SupportsDebugInformation = true;
50 // Set up DWARF directives
51 HasLEB128 = true; // Target asm supports leb128 directives (little-endian)
53 // Exceptions handling
55 ExceptionsType = ExceptionHandling::DwarfCFI;
57 ZeroDirective = "\t.space\t";
58 Data64bitsDirective = is64Bit ? "\t.quad\t" : 0;
59 HasLCOMMDirective = true;
60 AssemblerDialect = 0; // Old-Style mnemonics.