2012-02-18 12:03:15 +00:00
|
|
|
//===-- ARMMCAsmInfo.cpp - ARM asm properties -----------------------------===//
|
2006-09-07 22:05:02 +00:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
2007-12-29 20:36:04 +00:00
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
2006-09-07 22:05:02 +00:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
2009-08-22 20:48:53 +00:00
|
|
|
// This file contains the declarations of the ARMMCAsmInfo properties.
|
2006-09-07 22:05:02 +00:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2009-08-22 20:48:53 +00:00
|
|
|
#include "ARMMCAsmInfo.h"
|
2011-03-05 18:43:15 +00:00
|
|
|
#include "llvm/Support/CommandLine.h"
|
|
|
|
|
2006-09-07 22:05:02 +00:00
|
|
|
using namespace llvm;
|
|
|
|
|
2012-01-24 00:30:17 +00:00
|
|
|
cl::opt<bool>
|
|
|
|
EnableARMEHABI("arm-enable-ehabi", cl::Hidden,
|
|
|
|
cl::desc("Generate ARM EHABI tables"),
|
|
|
|
cl::init(false));
|
2011-03-05 18:43:15 +00:00
|
|
|
|
|
|
|
|
2011-12-20 02:50:00 +00:00
|
|
|
void ARMMCAsmInfoDarwin::anchor() { }
|
|
|
|
|
2010-01-20 06:34:14 +00:00
|
|
|
ARMMCAsmInfoDarwin::ARMMCAsmInfoDarwin() {
|
2009-08-11 22:14:59 +00:00
|
|
|
Data64bitsDirective = 0;
|
|
|
|
CommentString = "@";
|
2011-07-27 00:38:12 +00:00
|
|
|
Code16Directive = ".code\t16";
|
|
|
|
Code32Directive = ".code\t32";
|
2012-05-18 19:12:01 +00:00
|
|
|
UseDataRegionDirectives = true;
|
2011-07-27 00:38:12 +00:00
|
|
|
|
2009-06-19 21:54:26 +00:00
|
|
|
SupportsDebugInformation = true;
|
2009-08-11 00:09:57 +00:00
|
|
|
|
|
|
|
// Exceptions handling
|
|
|
|
ExceptionsType = ExceptionHandling::SjLj;
|
2008-08-07 09:54:23 +00:00
|
|
|
}
|
|
|
|
|
2011-12-20 02:50:00 +00:00
|
|
|
void ARMELFMCAsmInfo::anchor() { }
|
|
|
|
|
2010-01-20 06:34:14 +00:00
|
|
|
ARMELFMCAsmInfo::ARMELFMCAsmInfo() {
|
2010-01-26 20:21:43 +00:00
|
|
|
// ".comm align is in bytes but .align is pow-2."
|
|
|
|
AlignmentIsInBytes = false;
|
|
|
|
|
2009-08-11 22:14:59 +00:00
|
|
|
Data64bitsDirective = 0;
|
|
|
|
CommentString = "@";
|
2011-07-27 00:38:12 +00:00
|
|
|
Code16Directive = ".code\t16";
|
|
|
|
Code32Directive = ".code\t32";
|
|
|
|
|
|
|
|
HasLEB128 = true;
|
2009-06-19 21:54:26 +00:00
|
|
|
SupportsDebugInformation = true;
|
2011-03-05 18:43:15 +00:00
|
|
|
|
|
|
|
// Exceptions handling
|
2012-01-24 00:30:17 +00:00
|
|
|
if (EnableARMEHABI)
|
2011-03-05 18:43:15 +00:00
|
|
|
ExceptionsType = ExceptionHandling::ARM;
|
2008-08-07 09:54:23 +00:00
|
|
|
}
|