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;
34 void ARMELFMCAsmInfo::anchor() { }
36 ARMELFMCAsmInfo::ARMELFMCAsmInfo() {
37 // ".comm align is in bytes but .align is pow-2."
38 AlignmentIsInBytes = false;
40 Data64bitsDirective = 0;
42 Code16Directive = ".code\t16";
43 Code32Directive = ".code\t32";
46 SupportsDebugInformation = true;
48 // Exceptions handling
49 ExceptionsType = ExceptionHandling::ARM;
51 // foo(plt) instead of foo@plt
52 UseParensForSymbolVariant = true;