MC: Remove vestigial PCSymbol field from AsmInfo
[oota-llvm.git] / lib / Target / PowerPC / MCTargetDesc / PPCMCAsmInfo.cpp
1 //===-- PPCMCAsmInfo.cpp - PPC asm properties -----------------------------===//
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.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #include "PPCMCAsmInfo.h"
15 using namespace llvm;
16
17 void PPCMCAsmInfoDarwin::anchor() { }
18
19 PPCMCAsmInfoDarwin::PPCMCAsmInfoDarwin(bool is64Bit) {
20   if (is64Bit) {
21     PointerSize = CalleeSaveStackSlotSize = 8;
22   }
23   IsLittleEndian = false;
24
25   CommentString = ";";
26   ExceptionsType = ExceptionHandling::DwarfCFI;
27
28   if (!is64Bit)
29     Data64bitsDirective = 0;      // We can't emit a 64-bit unit in PPC32 mode.
30
31   AssemblerDialect = 1;           // New-Style mnemonics.
32   SupportsDebugInformation= true; // Debug information.
33 }
34
35 void PPCLinuxMCAsmInfo::anchor() { }
36
37 PPCLinuxMCAsmInfo::PPCLinuxMCAsmInfo(bool is64Bit) {
38   if (is64Bit) {
39     PointerSize = CalleeSaveStackSlotSize = 8;
40   }
41   IsLittleEndian = false;
42
43   // ".comm align is in bytes but .align is pow-2."
44   AlignmentIsInBytes = false;
45
46   CommentString = "#";
47   GlobalPrefix = "";
48   PrivateGlobalPrefix = ".L";
49   WeakRefDirective = "\t.weak\t";
50   
51   // Uses '.section' before '.bss' directive
52   UsesELFSectionDirectiveForBSS = true;  
53
54   // Debug Information
55   SupportsDebugInformation = true;
56
57   // Set up DWARF directives
58   HasLEB128 = true;  // Target asm supports leb128 directives (little-endian)
59   MinInstAlignment = 4;
60
61   // Exceptions handling
62   ExceptionsType = ExceptionHandling::DwarfCFI;
63     
64   ZeroDirective = "\t.space\t";
65   Data64bitsDirective = is64Bit ? "\t.quad\t" : 0;
66   AssemblerDialect = 1;           // New-Style mnemonics.
67 }
68