1235633Sdim//===-- ARMMCAsmInfo.cpp - ARM asm properties -----------------------------===//
2224133Sdim//
3224133Sdim//                     The LLVM Compiler Infrastructure
4224133Sdim//
5224133Sdim// This file is distributed under the University of Illinois Open Source
6224133Sdim// License. See LICENSE.TXT for details.
7224133Sdim//
8224133Sdim//===----------------------------------------------------------------------===//
9224133Sdim//
10224133Sdim// This file contains the declarations of the ARMMCAsmInfo properties.
11224133Sdim//
12224133Sdim//===----------------------------------------------------------------------===//
13224133Sdim
14224133Sdim#include "ARMMCAsmInfo.h"
15224133Sdim#include "llvm/Support/CommandLine.h"
16224133Sdim
17224133Sdimusing namespace llvm;
18224133Sdim
19224133Sdimcl::opt<bool>
20224133SdimEnableARMEHABI("arm-enable-ehabi", cl::Hidden,
21224133Sdim  cl::desc("Generate ARM EHABI tables"),
22224133Sdim  cl::init(false));
23224133Sdim
24224133Sdim
25235633Sdimvoid ARMMCAsmInfoDarwin::anchor() { }
26235633Sdim
27224133SdimARMMCAsmInfoDarwin::ARMMCAsmInfoDarwin() {
28224133Sdim  Data64bitsDirective = 0;
29224133Sdim  CommentString = "@";
30226890Sdim  Code16Directive = ".code\t16";
31226890Sdim  Code32Directive = ".code\t32";
32245431Sdim  UseDataRegionDirectives = true;
33226890Sdim
34224133Sdim  SupportsDebugInformation = true;
35224133Sdim
36224133Sdim  // Exceptions handling
37224133Sdim  ExceptionsType = ExceptionHandling::SjLj;
38224133Sdim}
39224133Sdim
40235633Sdimvoid ARMELFMCAsmInfo::anchor() { }
41235633Sdim
42224133SdimARMELFMCAsmInfo::ARMELFMCAsmInfo() {
43224133Sdim  // ".comm align is in bytes but .align is pow-2."
44224133Sdim  AlignmentIsInBytes = false;
45224133Sdim
46224133Sdim  Data64bitsDirective = 0;
47224133Sdim  CommentString = "@";
48226890Sdim  PrivateGlobalPrefix = ".L";
49226890Sdim  Code16Directive = ".code\t16";
50226890Sdim  Code32Directive = ".code\t32";
51224133Sdim
52226890Sdim  HasLEB128 = true;
53224133Sdim  SupportsDebugInformation = true;
54224133Sdim
55224133Sdim  // Exceptions handling
56224133Sdim  if (EnableARMEHABI)
57224133Sdim    ExceptionsType = ExceptionHandling::ARM;
58224133Sdim}
59