blob: 096dc7350db029eb2b83c6bcf7f8420de82e4ac9 [file] [log] [blame]
Daniel Dunbar56e29472009-07-15 06:35:19 +00001//===-- 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
Daniel Dunbarf03e78f2009-07-18 23:22:46 +000010#include "CPPTargetMachine.h"
Chandler Carruth9fb823b2013-01-02 11:36:10 +000011#include "llvm/IR/Module.h"
Evan Cheng2bb40352011-08-24 18:08:43 +000012#include "llvm/Support/TargetRegistry.h"
Daniel Dunbar56e29472009-07-15 06:35:19 +000013using namespace llvm;
14
Daniel Dunbar67038c12009-07-18 23:03:22 +000015Target llvm::TheCppBackendTarget;
Daniel Dunbar56e29472009-07-15 06:35:19 +000016
Rafael Espindoladfc14702013-12-13 16:05:32 +000017static 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;
Daniel Dunbar56e29472009-07-15 06:35:19 +000021}
22
Daniel Dunbar56e29472009-07-15 06:35:19 +000023extern "C" void LLVMInitializeCppBackendTargetInfo() {
24 TargetRegistry::RegisterTarget(TheCppBackendTarget, "cpp",
25 "C++ backend",
Daniel Dunbarbc981d82009-07-26 02:22:58 +000026 &CppBackend_TripleMatchQuality);
Daniel Dunbar56e29472009-07-15 06:35:19 +000027}
Evan Cheng6099cf12011-07-25 21:44:12 +000028
29extern "C" void LLVMInitializeCppBackendTargetMC() {}