2011-04-16 05:51:11 +08:00
|
|
|
//===-- MipsTargetInfo.cpp - Mips Target Implementation -------------------===//
|
2009-07-15 14:35:19 +08:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
2011-04-16 05:51:11 +08:00
|
|
|
//===----------------------------------------------------------------------===//
|
2009-07-15 14:35:19 +08:00
|
|
|
|
2009-07-19 07:03:22 +08:00
|
|
|
#include "Mips.h"
|
2009-07-15 14:35:19 +08:00
|
|
|
#include "llvm/Module.h"
|
|
|
|
#include "llvm/Target/TargetRegistry.h"
|
|
|
|
using namespace llvm;
|
|
|
|
|
2009-07-26 13:03:33 +08:00
|
|
|
Target llvm::TheMipsTarget, llvm::TheMipselTarget;
|
2009-07-15 14:35:19 +08:00
|
|
|
|
2011-03-05 01:51:39 +08:00
|
|
|
extern "C" void LLVMInitializeMipsTargetInfo() {
|
2009-07-26 13:03:33 +08:00
|
|
|
RegisterTarget<Triple::mips> X(TheMipsTarget, "mips", "Mips");
|
2009-07-15 14:35:19 +08:00
|
|
|
|
2009-07-26 13:03:33 +08:00
|
|
|
RegisterTarget<Triple::mipsel> Y(TheMipselTarget, "mipsel", "Mipsel");
|
2009-07-15 14:35:19 +08:00
|
|
|
}
|