Dwarf register 0 is r0, remove incorrect entries.
[llvm/stm8.git] / lib / Target / PowerPC / PPCMCAsmInfo.cpp
blob2d5c8809ba9f7484160eae8d5aec08eb029fc523
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::DwarfCFI;
22 if (!is64Bit)
23 Data64bitsDirective = 0; // We can't emit a 64-bit unit in PPC32 mode.
25 AssemblerDialect = 1; // New-Style mnemonics.
26 SupportsDebugInformation= true; // Debug information.
29 PPCLinuxMCAsmInfo::PPCLinuxMCAsmInfo(bool is64Bit) {
30 // ".comm align is in bytes but .align is pow-2."
31 AlignmentIsInBytes = false;
33 CommentString = "#";
34 GlobalPrefix = "";
35 PrivateGlobalPrefix = ".L";
36 WeakRefDirective = "\t.weak\t";
38 // Uses '.section' before '.bss' directive
39 UsesELFSectionDirectiveForBSS = true;
41 // Debug Information
42 SupportsDebugInformation = true;
44 PCSymbol = ".";
46 // Set up DWARF directives
47 HasLEB128 = true; // Target asm supports leb128 directives (little-endian)
49 // Exceptions handling
50 if (!is64Bit)
51 ExceptionsType = ExceptionHandling::DwarfCFI;
53 ZeroDirective = "\t.space\t";
54 Data64bitsDirective = is64Bit ? "\t.quad\t" : 0;
55 HasLCOMMDirective = true;
56 AssemblerDialect = 0; // Old-Style mnemonics.