1 //===-- ARMTargetInfo.cpp - ARM Target Implementation ---------------------===//
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 #include "MCTargetDesc/ARMMCTargetDesc.h"
11 #include "llvm/Support/TargetRegistry.h"
12 using namespace llvm;
13
14 Target llvm::TheARMLETarget, llvm::TheARMBETarget;
15 Target llvm::TheThumbLETarget, llvm::TheThumbBETarget;
16
LLVMInitializeARMTargetInfo()17 extern "C" void LLVMInitializeARMTargetInfo() {
18 RegisterTarget<Triple::arm, /*HasJIT=*/true>
19 X(TheARMLETarget, "arm", "ARM");
20 RegisterTarget<Triple::armeb, /*HasJIT=*/true>
21 Y(TheARMBETarget, "armeb", "ARM (big endian)");
22
23 RegisterTarget<Triple::thumb, /*HasJIT=*/true>
24 A(TheThumbLETarget, "thumb", "Thumb");
25 RegisterTarget<Triple::thumbeb, /*HasJIT=*/true>
26 B(TheThumbBETarget, "thumbeb", "Thumb (big endian)");
27 }
28