turn some templated inline functions into static functions.
[oota-llvm.git] / lib / Target / ARM / ARMTargetAsmInfo.h
1 //=====-- ARMTargetAsmInfo.h - ARM asm properties -------------*- C++ -*--====//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file contains the declaration of the ARMTargetAsmInfo class.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #ifndef ARMTARGETASMINFO_H
15 #define ARMTARGETASMINFO_H
16
17 #include "ARMTargetMachine.h"
18 #include "llvm/Target/TargetAsmInfo.h"
19 #include "llvm/Target/DarwinTargetAsmInfo.h"
20 #include "llvm/Support/Compiler.h"
21
22 namespace llvm {
23
24   extern const char *const arm_asm_table[];
25
26   template <class BaseTAI>
27   struct ARMTargetAsmInfo : public BaseTAI {
28     explicit ARMTargetAsmInfo(const ARMBaseTargetMachine &TM) {
29       BaseTAI::AsmTransCBE = arm_asm_table;
30
31       BaseTAI::AlignmentIsInBytes = false;
32       BaseTAI::Data64bitsDirective = 0;
33       BaseTAI::CommentString = "@";
34       BaseTAI::COMMDirectiveTakesAlignment = false;
35       BaseTAI::InlineAsmStart = "@ InlineAsm Start";
36       BaseTAI::InlineAsmEnd = "@ InlineAsm End";
37       BaseTAI::LCOMMDirective = "\t.lcomm\t";
38     }
39
40     const ARMSubtarget *Subtarget;
41
42     virtual unsigned getInlineAsmLength(const char *Str) const;
43   };
44
45   EXTERN_TEMPLATE_INSTANTIATION(class ARMTargetAsmInfo<TargetAsmInfo>);
46
47   struct ARMDarwinTargetAsmInfo : public ARMTargetAsmInfo<DarwinTargetAsmInfo> {
48     explicit ARMDarwinTargetAsmInfo(const ARMBaseTargetMachine &TM);
49   };
50
51   struct ARMELFTargetAsmInfo : public ARMTargetAsmInfo<TargetAsmInfo> {
52     explicit ARMELFTargetAsmInfo(const ARMBaseTargetMachine &TM);
53   };
54
55 } // namespace llvm
56
57 #endif