00996a076acbbf5e83dc53064e2b99719ce219be
[oota-llvm.git] / lib / Target / AArch64 / MCTargetDesc / AArch64MCAsmInfo.cpp
1 //===-- AArch64MCAsmInfo.cpp - AArch64 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 AArch64MCAsmInfo properties.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #include "AArch64MCAsmInfo.h"
15 #include "llvm/ADT/Triple.h"
16
17 using namespace llvm;
18
19 AArch64ELFMCAsmInfo::AArch64ELFMCAsmInfo(StringRef TT) {
20   Triple TheTriple(TT);
21   if (TheTriple.getArch() == Triple::aarch64_be)
22     IsLittleEndian = false;
23
24   PointerSize = 8;
25
26   // ".comm align is in bytes but .align is pow-2."
27   AlignmentIsInBytes = false;
28
29   CommentString = "//";
30   Code32Directive = ".code\t32";
31
32   Data16bitsDirective = "\t.hword\t";
33   Data32bitsDirective = "\t.word\t";
34   Data64bitsDirective = "\t.xword\t";
35
36   UseDataRegionDirectives = true;
37
38   HasLEB128 = true;
39   SupportsDebugInformation = true;
40
41   // Exceptions handling
42   ExceptionsType = ExceptionHandling::DwarfCFI;
43
44   UseIntegratedAssembler = true;
45 }
46
47 // Pin the vtable to this file.
48 void AArch64ELFMCAsmInfo::anchor() {}