1*9880d681SAndroid Build Coastguard Worker //===-- AVRTargetInfo.cpp - AVR Target Implementation ---------------------===// 2*9880d681SAndroid Build Coastguard Worker // 3*9880d681SAndroid Build Coastguard Worker // The LLVM Compiler Infrastructure 4*9880d681SAndroid Build Coastguard Worker // 5*9880d681SAndroid Build Coastguard Worker // This file is distributed under the University of Illinois Open Source 6*9880d681SAndroid Build Coastguard Worker // License. See LICENSE.TXT for details. 7*9880d681SAndroid Build Coastguard Worker // 8*9880d681SAndroid Build Coastguard Worker //===----------------------------------------------------------------------===// 9*9880d681SAndroid Build Coastguard Worker 10*9880d681SAndroid Build Coastguard Worker #include "llvm/IR/Module.h" 11*9880d681SAndroid Build Coastguard Worker #include "llvm/Support/TargetRegistry.h" 12*9880d681SAndroid Build Coastguard Worker 13*9880d681SAndroid Build Coastguard Worker namespace llvm { 14*9880d681SAndroid Build Coastguard Worker Target TheAVRTarget; 15*9880d681SAndroid Build Coastguard Worker } 16*9880d681SAndroid Build Coastguard Worker LLVMInitializeAVRTargetInfo()17*9880d681SAndroid Build Coastguard Workerextern "C" void LLVMInitializeAVRTargetInfo() { 18*9880d681SAndroid Build Coastguard Worker llvm::RegisterTarget<llvm::Triple::avr> X( 19*9880d681SAndroid Build Coastguard Worker llvm::TheAVRTarget, "avr", "Atmel AVR Microcontroller"); 20*9880d681SAndroid Build Coastguard Worker } 21*9880d681SAndroid Build Coastguard Worker 22*9880d681SAndroid Build Coastguard Worker // FIXME: Temporary stub - this function must be defined for linking 23*9880d681SAndroid Build Coastguard Worker // to succeed. Remove once this function is properly implemented. LLVMInitializeAVRTargetMC()24*9880d681SAndroid Build Coastguard Workerextern "C" void LLVMInitializeAVRTargetMC() { 25*9880d681SAndroid Build Coastguard Worker } 26