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"
19 void ARMMCAsmInfoDarwin::anchor() { }
21 ARMMCAsmInfoDarwin::ARMMCAsmInfoDarwin() {
22 Data64bitsDirective = 0;
24 Code16Directive = ".code\t16";
25 Code32Directive = ".code\t32";
26 UseDataRegionDirectives = true;
28 SupportsDebugInformation = true;
30 // Exceptions handling
31 ExceptionsType = ExceptionHandling::SjLj;
33 UseIntegratedAssembler = true;
36 void ARMELFMCAsmInfo::anchor() { }
38 ARMELFMCAsmInfo::ARMELFMCAsmInfo() {
39 // ".comm align is in bytes but .align is pow-2."
40 AlignmentIsInBytes = false;
42 Data64bitsDirective = 0;
44 Code16Directive = ".code\t16";
45 Code32Directive = ".code\t32";
48 SupportsDebugInformation = true;
50 // Exceptions handling
51 ExceptionsType = ExceptionHandling::ARM;
53 // foo(plt) instead of foo@plt
54 UseParensForSymbolVariant = true;
56 UseIntegratedAssembler = true;
58 // gas doesn't handle VFP register names in cfi directives.
59 // See https://sourceware.org/bugzilla/show_bug.cgi?id=16694
60 DwarfRegNumForCFI = true;