LLVM API Documentation
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/Module.h" 00012 #include "llvm/Target/TargetRegistry.h" 00013 using namespace llvm; 00014 00015 Target llvm::TheCppBackendTarget; 00016 00017 static unsigned CppBackend_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 LLVMInitializeCppBackendTargetInfo() { 00023 TargetRegistry::RegisterTarget(TheCppBackendTarget, "cpp", 00024 "C++ backend", 00025 &CppBackend_TripleMatchQuality); 00026 }