1 //===-- ARMMCAsmInfo.cpp - ARM asm properties -----------------------------===//
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 void ARMMCAsmInfoDarwin::anchor() { }
27 ARMMCAsmInfoDarwin::ARMMCAsmInfoDarwin() {
28 Data64bitsDirective = 0;
30 Code16Directive = ".code\t16";
31 Code32Directive = ".code\t32";
32 UseDataRegionDirectives = true;
34 SupportsDebugInformation = true;
36 // Exceptions handling
37 ExceptionsType = ExceptionHandling::SjLj;
40 void ARMELFMCAsmInfo::anchor() { }
42 ARMELFMCAsmInfo::ARMELFMCAsmInfo() {
43 // ".comm align is in bytes but .align is pow-2."
44 AlignmentIsInBytes = false;
46 Data64bitsDirective = 0;
48 PrivateGlobalPrefix = ".L";
49 Code16Directive = ".code\t16";
50 Code32Directive = ".code\t32";
52 WeakRefDirective = "\t.weak\t";
55 SupportsDebugInformation = true;
57 // Exceptions handling
59 ExceptionsType = ExceptionHandling::ARM;