LLVM API Documentation
00001 //===-- ARMTargetAsmInfo.cpp - ARM asm properties ---------------*- C++ -*-===// 00002 // 00003 // The LLVM Compiler Infrastructure 00004 // 00005 // This file is distributed under the University of Illinois Open Source 00006 // License. See LICENSE.TXT for details. 00007 // 00008 //===----------------------------------------------------------------------===// 00009 // 00010 // This file contains the declarations of the ARMTargetAsmInfo properties. 00011 // 00012 //===----------------------------------------------------------------------===// 00013 00014 #include "ARMTargetAsmInfo.h" 00015 using namespace llvm; 00016 00017 static const char *const arm_asm_table[] = { 00018 "{r0}", "r0", 00019 "{r1}", "r1", 00020 "{r2}", "r2", 00021 "{r3}", "r3", 00022 "{r4}", "r4", 00023 "{r5}", "r5", 00024 "{r6}", "r6", 00025 "{r7}", "r7", 00026 "{r8}", "r8", 00027 "{r9}", "r9", 00028 "{r10}", "r10", 00029 "{r11}", "r11", 00030 "{r12}", "r12", 00031 "{r13}", "r13", 00032 "{r14}", "r14", 00033 "{lr}", "lr", 00034 "{sp}", "sp", 00035 "{ip}", "ip", 00036 "{fp}", "fp", 00037 "{sl}", "sl", 00038 "{memory}", "memory", 00039 "{cc}", "cc", 00040 0,0 00041 }; 00042 00043 ARMDarwinTargetAsmInfo::ARMDarwinTargetAsmInfo() { 00044 AsmTransCBE = arm_asm_table; 00045 Data64bitsDirective = 0; 00046 CommentString = "@"; 00047 COMMDirectiveTakesAlignment = false; 00048 SupportsDebugInformation = true; 00049 00050 // Exceptions handling 00051 ExceptionsType = ExceptionHandling::SjLj; 00052 AbsoluteEHSectionOffsets = false; 00053 } 00054 00055 ARMELFTargetAsmInfo::ARMELFTargetAsmInfo() { 00056 AlignmentIsInBytes = false; 00057 Data64bitsDirective = 0; 00058 CommentString = "@"; 00059 COMMDirectiveTakesAlignment = false; 00060 00061 NeedsSet = false; 00062 HasLEB128 = true; 00063 AbsoluteDebugSectionOffsets = true; 00064 PrivateGlobalPrefix = ".L"; 00065 WeakRefDirective = "\t.weak\t"; 00066 SetDirective = "\t.set\t"; 00067 LCOMMDirective = "\t.lcomm\t"; 00068 00069 DwarfRequiresFrameSection = false; 00070 00071 SupportsDebugInformation = true; 00072 }