2009-08-22 20:48:53 +00:00
|
|
|
//===-- ARMMCAsmInfo.cpp - ARM asm properties -------------------*- C++ -*-===//
|
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;
|
|
|
|
|
2011-03-05 18:43:32 +00:00
|
|
|
cl::opt<bool>
|
2011-03-05 18:43:15 +00:00
|
|
|
EnableARMEHABI("arm-enable-ehabi", cl::Hidden,
|
|
|
|
cl::desc("Generate ARM EHABI tables"),
|
|
|
|
cl::init(false));
|
|
|
|
|
|
|
|
|
2009-08-11 22:14:59 +00:00
|
|
|
static const char *const arm_asm_table[] = {
|
2009-06-18 23:41:35 +00:00
|
|
|
"{r0}", "r0",
|
|
|
|
"{r1}", "r1",
|
|
|
|
"{r2}", "r2",
|
|
|
|
"{r3}", "r3",
|
|
|
|
"{r4}", "r4",
|
|
|
|
"{r5}", "r5",
|
|
|
|
"{r6}", "r6",
|
|
|
|
"{r7}", "r7",
|
|
|
|
"{r8}", "r8",
|
|
|
|
"{r9}", "r9",
|
|
|
|
"{r10}", "r10",
|
|
|
|
"{r11}", "r11",
|
|
|
|
"{r12}", "r12",
|
|
|
|
"{r13}", "r13",
|
|
|
|
"{r14}", "r14",
|
|
|
|
"{lr}", "lr",
|
|
|
|
"{sp}", "sp",
|
|
|
|
"{ip}", "ip",
|
|
|
|
"{fp}", "fp",
|
|
|
|
"{sl}", "sl",
|
|
|
|
"{memory}", "memory",
|
|
|
|
"{cc}", "cc",
|
|
|
|
0,0
|
|
|
|
};
|
2007-06-08 21:06:23 +00:00
|
|
|
|
2010-01-20 06:34:14 +00:00
|
|
|
ARMMCAsmInfoDarwin::ARMMCAsmInfoDarwin() {
|
2009-08-11 22:14:59 +00:00
|
|
|
AsmTransCBE = arm_asm_table;
|
|
|
|
Data64bitsDirective = 0;
|
|
|
|
CommentString = "@";
|
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
|
|
|
}
|
|
|
|
|
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 = "@";
|
2010-01-25 02:27:39 +00:00
|
|
|
|
2008-08-07 09:54:23 +00:00
|
|
|
HasLEB128 = true;
|
|
|
|
PrivateGlobalPrefix = ".L";
|
|
|
|
WeakRefDirective = "\t.weak\t";
|
2010-01-23 07:47:02 +00:00
|
|
|
HasLCOMMDirective = true;
|
2009-08-11 22:06:07 +00:00
|
|
|
|
2008-08-07 09:54:23 +00:00
|
|
|
DwarfRequiresFrameSection = false;
|
|
|
|
|
2009-06-19 21:54:26 +00:00
|
|
|
SupportsDebugInformation = true;
|
2011-03-05 18:43:15 +00:00
|
|
|
|
|
|
|
// Exceptions handling
|
|
|
|
if (EnableARMEHABI)
|
|
|
|
ExceptionsType = ExceptionHandling::ARM;
|
2008-08-07 09:54:23 +00:00
|
|
|
}
|