LLVM API Documentation

MSILTargetInfo.cpp

Go to the documentation of this file.
00001 //===-- MSILTargetInfo.cpp - MSIL Target Implementation -------------------===//
00002 //
00003 //                     The LLVM Compiler Infrastructure
00004 //
00005 // This file is distributed under the University of Illinois Open Source
00006 // License. See LICENSE.TXT for details.
00007 //
00008 //===----------------------------------------------------------------------===//
00009 
00010 #include "MSILWriter.h"
00011 #include "llvm/Module.h"
00012 #include "llvm/Target/TargetRegistry.h"
00013 using namespace llvm;
00014 
00015 Target llvm::TheMSILTarget;
00016 
00017 static unsigned MSIL_TripleMatchQuality(const std::string &TT) {
00018   // This class always works, but shouldn't be the default in most cases.
00019   return 1;
00020 }
00021 
00022 extern "C" void LLVMInitializeMSILTargetInfo() { 
00023   TargetRegistry::RegisterTarget(TheMSILTarget, "msil",    
00024                                   "MSIL backend",
00025                                   &MSIL_TripleMatchQuality);
00026 }