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.
24 AssemblerDialect
= 1; // New-Style mnemonics.
26 PersonalityPrefix
= "L";
27 PersonalitySuffix
= "$non_lazy_ptr";
30 PPCLinuxMCAsmInfo::PPCLinuxMCAsmInfo(bool is64Bit
) {
33 PrivateGlobalPrefix
= ".L";
34 UsedDirective
= "\t# .no_dead_strip\t";
35 WeakRefDirective
= "\t.weak\t";
37 // Uses '.section' before '.bss' directive
38 UsesELFSectionDirectiveForBSS
= true;
41 AbsoluteDebugSectionOffsets
= true;
42 SupportsDebugInformation
= true;
46 // Set up DWARF directives
47 HasLEB128
= true; // Target asm supports leb128 directives (little-endian)
49 // Exceptions handling
51 ExceptionsType
= ExceptionHandling::Dwarf
;
52 AbsoluteEHSectionOffsets
= false;
54 ZeroDirective
= "\t.space\t";
55 SetDirective
= "\t.set";
56 Data64bitsDirective
= is64Bit
? "\t.quad\t" : 0;
57 AlignmentIsInBytes
= false;
58 LCOMMDirective
= "\t.lcomm\t";
59 AssemblerDialect
= 0; // Old-Style mnemonics.