• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //===-- AVRTargetInfo.cpp - AVR 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 "llvm/IR/Module.h"
11 #include "llvm/Support/TargetRegistry.h"
12 
13 namespace llvm {
14 Target TheAVRTarget;
15 }
16 
LLVMInitializeAVRTargetInfo()17 extern "C" void LLVMInitializeAVRTargetInfo() {
18   llvm::RegisterTarget<llvm::Triple::avr> X(
19       llvm::TheAVRTarget, "avr", "Atmel AVR Microcontroller");
20 }
21 
22 // FIXME: Temporary stub - this function must be defined for linking
23 // to succeed. Remove once this function is properly implemented.
LLVMInitializeAVRTargetMC()24 extern "C" void LLVMInitializeAVRTargetMC() {
25 }
26