2006-09-07 22:05:02 +00:00
|
|
|
//===-- ARMTargetAsmInfo.cpp - ARM asm properties ---------------*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// 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
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file contains the declarations of the ARMTargetAsmInfo properties.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#include "ARMTargetAsmInfo.h"
|
|
|
|
using namespace llvm;
|
|
|
|
|
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
|
|
|
|
2009-08-02 05:23:52 +00:00
|
|
|
ARMDarwinTargetAsmInfo::ARMDarwinTargetAsmInfo() {
|
2009-08-11 22:14:59 +00:00
|
|
|
AsmTransCBE = arm_asm_table;
|
|
|
|
Data64bitsDirective = 0;
|
|
|
|
CommentString = "@";
|
|
|
|
COMMDirectiveTakesAlignment = false;
|
2009-06-19 21:54:26 +00:00
|
|
|
SupportsDebugInformation = true;
|
2009-08-11 00:09:57 +00:00
|
|
|
|
|
|
|
// Exceptions handling
|
|
|
|
ExceptionsType = ExceptionHandling::SjLj;
|
|
|
|
AbsoluteEHSectionOffsets = false;
|
2008-08-07 09:54:23 +00:00
|
|
|
}
|
|
|
|
|
2009-08-02 05:23:52 +00:00
|
|
|
ARMELFTargetAsmInfo::ARMELFTargetAsmInfo() {
|
2009-08-11 22:14:59 +00:00
|
|
|
AlignmentIsInBytes = false;
|
|
|
|
Data64bitsDirective = 0;
|
|
|
|
CommentString = "@";
|
|
|
|
COMMDirectiveTakesAlignment = false;
|
|
|
|
|
2008-08-07 09:54:23 +00:00
|
|
|
NeedsSet = false;
|
|
|
|
HasLEB128 = true;
|
|
|
|
AbsoluteDebugSectionOffsets = true;
|
|
|
|
PrivateGlobalPrefix = ".L";
|
|
|
|
WeakRefDirective = "\t.weak\t";
|
|
|
|
SetDirective = "\t.set\t";
|
2009-08-11 22:06:07 +00:00
|
|
|
LCOMMDirective = "\t.lcomm\t";
|
|
|
|
|
2008-08-07 09:54:23 +00:00
|
|
|
DwarfRequiresFrameSection = false;
|
|
|
|
|
2009-06-19 21:54:26 +00:00
|
|
|
SupportsDebugInformation = true;
|
2008-08-07 09:54:23 +00:00
|
|
|
}
|