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 ARMMCAsmInfoDarwin::ARMMCAsmInfoDarwin() {
52 AsmTransCBE = arm_asm_table;
53 Data64bitsDirective = 0;
55 Code16Directive = ".code\t16";
56 Code32Directive = ".code\t32";
58 SupportsDebugInformation = true;
60 // Exceptions handling
61 ExceptionsType = ExceptionHandling::SjLj;
64 ARMELFMCAsmInfo::ARMELFMCAsmInfo() {
65 // ".comm align is in bytes but .align is pow-2."
66 AlignmentIsInBytes = false;
68 Data64bitsDirective = 0;
70 PrivateGlobalPrefix = ".L";
71 Code16Directive = ".code\t16";
72 Code32Directive = ".code\t32";
74 WeakRefDirective = "\t.weak\t";
75 LCOMMDirectiveType = LCOMM::NoAlignment;
78 SupportsDebugInformation = true;
80 // Exceptions handling
82 ExceptionsType = ExceptionHandling::ARM;