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 ExceptionsType = ExceptionHandling::Dwarf;
23 Data64bitsDirective = 0; // We can't emit a 64-bit unit in PPC32 mode.
26 NeedsSetToChangeDiffSize = true;
28 AssemblerDialect = 1; // New-Style mnemonics.
29 SupportsDebugInformation= true; // Debug information.
32 PPCLinuxMCAsmInfo::PPCLinuxMCAsmInfo(bool is64Bit) {
33 // ".comm align is in bytes but .align is pow-2."
34 AlignmentIsInBytes = false;
38 PrivateGlobalPrefix = ".L";
39 WeakRefDirective = "\t.weak\t";
41 // Uses '.section' before '.bss' directive
42 UsesELFSectionDirectiveForBSS = true;
45 SupportsDebugInformation = true;
49 // Set up DWARF directives
50 HasLEB128 = true; // Target asm supports leb128 directives (little-endian)
52 // Exceptions handling
54 ExceptionsType = ExceptionHandling::Dwarf;
56 ZeroDirective = "\t.space\t";
57 Data64bitsDirective = is64Bit ? "\t.quad\t" : 0;
58 HasLCOMMDirective = true;
59 AssemblerDialect = 0; // Old-Style mnemonics.