//===-- ARMTargetInfo.cpp - ARM Target Implementation ---------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// #include "MCTargetDesc/ARMMCTargetDesc.h" #include "llvm/Support/TargetRegistry.h" using namespace llvm; Target &llvm::getTheARMLETarget() { static Target TheARMLETarget; return TheARMLETarget; } Target &llvm::getTheARMBETarget() { static Target TheARMBETarget; return TheARMBETarget; } Target &llvm::getTheThumbLETarget() { static Target TheThumbLETarget; return TheThumbLETarget; } Target &llvm::getTheThumbBETarget() { static Target TheThumbBETarget; return TheThumbBETarget; } extern "C" void LLVMInitializeARMTargetInfo() { RegisterTarget X(getTheARMLETarget(), "arm", "ARM", "ARM"); RegisterTarget Y(getTheARMBETarget(), "armeb", "ARM (big endian)", "ARM"); RegisterTarget A(getTheThumbLETarget(), "thumb", "Thumb", "ARM"); RegisterTarget B( getTheThumbBETarget(), "thumbeb", "Thumb (big endian)", "ARM"); }