1 //=====-- ARMTargetAsmInfo.h - ARM asm properties -------------*- C++ -*--====//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file contains the declaration of the ARMTargetAsmInfo class.
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_ARMTARGETASMINFO_H
15 #define LLVM_ARMTARGETASMINFO_H
17 #include "llvm/Target/DarwinTargetAsmInfo.h"
18 #include "llvm/Support/Compiler.h"
22 extern const char *const arm_asm_table[];
24 template <class BaseTAI>
25 struct ARMTargetAsmInfo : public BaseTAI {
26 explicit ARMTargetAsmInfo() {
27 BaseTAI::AsmTransCBE = arm_asm_table;
29 BaseTAI::AlignmentIsInBytes = false;
30 BaseTAI::Data64bitsDirective = 0;
31 BaseTAI::CommentString = "@";
32 BaseTAI::COMMDirectiveTakesAlignment = false;
33 BaseTAI::InlineAsmStart = "@ InlineAsm Start";
34 BaseTAI::InlineAsmEnd = "@ InlineAsm End";
35 BaseTAI::LCOMMDirective = "\t.lcomm\t";
39 EXTERN_TEMPLATE_INSTANTIATION(class ARMTargetAsmInfo<DarwinTargetAsmInfo>);
40 EXTERN_TEMPLATE_INSTANTIATION(class ARMTargetAsmInfo<TargetAsmInfo>);
42 struct ARMDarwinTargetAsmInfo : public ARMTargetAsmInfo<DarwinTargetAsmInfo> {
43 explicit ARMDarwinTargetAsmInfo();
46 struct ARMELFTargetAsmInfo : public ARMTargetAsmInfo<TargetAsmInfo> {
47 explicit ARMELFTargetAsmInfo();