1 //===-- ARMMCAsmInfo.cpp - ARM 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 ARMMCAsmInfo properties.
12 //===----------------------------------------------------------------------===//
14 #include "ARMMCAsmInfo.h"
15 #include "llvm/Support/CommandLine.h"
20 EnableARMEHABI("arm-enable-ehabi", cl::Hidden,
21 cl::desc("Generate ARM EHABI tables"),
25 static const char *const arm_asm_table[] = {
51 void ARMMCAsmInfoDarwin::anchor() { }
53 ARMMCAsmInfoDarwin::ARMMCAsmInfoDarwin() {
54 AsmTransCBE = arm_asm_table;
55 Data64bitsDirective = 0;
57 Code16Directive = ".code\t16";
58 Code32Directive = ".code\t32";
60 SupportsDebugInformation = true;
62 // Exceptions handling
63 ExceptionsType = ExceptionHandling::SjLj;
66 void ARMELFMCAsmInfo::anchor() { }
68 ARMELFMCAsmInfo::ARMELFMCAsmInfo() {
69 // ".comm align is in bytes but .align is pow-2."
70 AlignmentIsInBytes = false;
72 Data64bitsDirective = 0;
74 PrivateGlobalPrefix = ".L";
75 Code16Directive = ".code\t16";
76 Code32Directive = ".code\t32";
78 WeakRefDirective = "\t.weak\t";
79 LCOMMDirectiveType = LCOMM::NoAlignment;
82 SupportsDebugInformation = true;
84 // Exceptions handling
86 ExceptionsType = ExceptionHandling::ARM;