zpu: managed to compile program that writes constant to global variable
[llvm/zpu.git] / lib / Target / ZPU / TargetInfo / ZPUTargetInfo.cpp
blob4892b27a390290a64ff2993bdcb89fdd541b28a2
1 //===-- ZPUTargetInfo.cpp - ZPU 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 //===----------------------------------------------------------------------===//
10 #include "ZPU.h"
11 #include "llvm/Module.h"
12 #include "llvm/Target/TargetRegistry.h"
13 using namespace llvm;
15 Target llvm::TheZPUTarget;
17 extern "C" void LLVMInitializeZPUTargetInfo() {
18 RegisterTarget<Triple::zpu> X(TheZPUTarget, "ZPU", "ZPU");