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 SupportsDebugInformation = true;
57 // Exceptions handling
58 ExceptionsType = ExceptionHandling::SjLj;
61 ARMELFMCAsmInfo::ARMELFMCAsmInfo() {
62 // ".comm align is in bytes but .align is pow-2."
63 AlignmentIsInBytes = false;
65 Data64bitsDirective = 0;
69 PrivateGlobalPrefix = ".L";
70 WeakRefDirective = "\t.weak\t";
71 HasLCOMMDirective = true;
73 DwarfRequiresFrameSection = false;
75 SupportsDebugInformation = true;
77 // Exceptions handling
79 ExceptionsType = ExceptionHandling::ARM;