LLVM API Documentation

CppBackendTargetInfo.cpp
Go to the documentation of this file.
00001 //===-- CppBackendTargetInfo.cpp - CppBackend 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 "CPPTargetMachine.h"
00011 #include "llvm/IR/Module.h"
00012 #include "llvm/Support/TargetRegistry.h"
00013 using namespace llvm;
00014 
00015 Target llvm::TheCppBackendTarget;
00016 
00017 static bool CppBackend_TripleMatchQuality(Triple::ArchType Arch) {
00018   // This backend doesn't correspond to any architecture. It must be explicitly
00019   // selected with -march.
00020   return false;
00021 }
00022 
00023 extern "C" void LLVMInitializeCppBackendTargetInfo() { 
00024   TargetRegistry::RegisterTarget(TheCppBackendTarget, "cpp",    
00025                                   "C++ backend",
00026                                   &CppBackend_TripleMatchQuality);
00027 }
00028 
00029 extern "C" void LLVMInitializeCppBackendTargetMC() {}