this is failing on linux hosts, force a triple.
[llvm/avr.git] / lib / Target / PowerPC / PPCMCAsmInfo.cpp
blobc87879b2a332a06222e1936d5f866bd2ef2156c4
1 //===-- PPCMCAsmInfo.cpp - PPC asm properties -------------------*- C++ -*-===//
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.
12 //===----------------------------------------------------------------------===//
14 #include "PPCMCAsmInfo.h"
15 using namespace llvm;
17 PPCMCAsmInfoDarwin::PPCMCAsmInfoDarwin(bool is64Bit) {
18 PCSymbol = ".";
19 CommentString = ";";
20 ExceptionsType = ExceptionHandling::Dwarf;
22 if (!is64Bit)
23 Data64bitsDirective = 0; // We can't emit a 64-bit unit in PPC32 mode.
24 AssemblerDialect = 1; // New-Style mnemonics.
27 PPCLinuxMCAsmInfo::PPCLinuxMCAsmInfo(bool is64Bit) {
28 CommentString = "#";
29 GlobalPrefix = "";
30 PrivateGlobalPrefix = ".L";
31 UsedDirective = "\t# .no_dead_strip\t";
32 WeakRefDirective = "\t.weak\t";
34 // Uses '.section' before '.bss' directive
35 UsesELFSectionDirectiveForBSS = true;
37 // Debug Information
38 AbsoluteDebugSectionOffsets = true;
39 SupportsDebugInformation = true;
41 PCSymbol = ".";
43 // Set up DWARF directives
44 HasLEB128 = true; // Target asm supports leb128 directives (little-endian)
46 // Exceptions handling
47 if (!is64Bit)
48 ExceptionsType = ExceptionHandling::Dwarf;
49 AbsoluteEHSectionOffsets = false;
51 ZeroDirective = "\t.space\t";
52 SetDirective = "\t.set";
53 Data64bitsDirective = is64Bit ? "\t.quad\t" : 0;
54 AlignmentIsInBytes = false;
55 LCOMMDirective = "\t.lcomm\t";
56 AssemblerDialect = 0; // Old-Style mnemonics.