1 //===-- CppBackendTargetInfo.cpp - CppBackend Target Implementation -------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #include "CPPTargetMachine.h"
11 #include "llvm/IR/Module.h"
12 #include "llvm/Support/TargetRegistry.h"
15 Target llvm::TheCppBackendTarget;
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.
23 extern "C" void LLVMInitializeCppBackendTargetInfo() {
24 TargetRegistry::RegisterTarget(TheCppBackendTarget, "cpp",
26 &CppBackend_TripleMatchQuality);
29 extern "C" void LLVMInitializeCppBackendTargetMC() {}