1 //===-- CppBackendTargetInfo.cpp - CppBackend 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 //===----------------------------------------------------------------------===//
9 
10 #include "CPPTargetMachine.h"
11 #include "llvm/IR/Module.h"
12 #include "llvm/Support/TargetRegistry.h"
13 using namespace llvm;
14 
15 Target llvm::TheCppBackendTarget;
16 
17 static bool CppBackend_TripleMatchQuality(Triple::ArchType Arch) {
18   // This backend doesn't correspond to any architecture. It must be explicitly
19   // selected with -march.
20   return false;
21 }
22 
23 extern "C" void LLVMInitializeCppBackendTargetInfo() {
24   TargetRegistry::RegisterTarget(TheCppBackendTarget, "cpp",
25                                   "C++ backend",
26                                   &CppBackend_TripleMatchQuality);
27 }
28 
29 extern "C" void LLVMInitializeCppBackendTargetMC() {}
30