remove the dead ELFTargetAsmInfo.h/cpp file. TargetAsmInfo
[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     unsigned countArguments(const char *p) const;
44     unsigned countString(const char *p) const;
45   };
46
47   EXTERN_TEMPLATE_INSTANTIATION(class ARMTargetAsmInfo<TargetAsmInfo>);
48
49   struct ARMDarwinTargetAsmInfo : public ARMTargetAsmInfo<DarwinTargetAsmInfo> {
50     explicit ARMDarwinTargetAsmInfo(const ARMBaseTargetMachine &TM);
51   };
52
53   struct ARMELFTargetAsmInfo : public ARMTargetAsmInfo<TargetAsmInfo> {
54     explicit ARMELFTargetAsmInfo(const ARMBaseTargetMachine &TM);
55   };
56
57 } // namespace llvm
58
59 #endif