brintos

brintos / llvm-project-archived public Read only

0
0
Text · 895 B · 4701f46 Raw
28 lines · cpp
1//===-- M68kTargetInfo.cpp - M68k Target Implementation ---------*- C++ -*-===//2//3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.4// See https://llvm.org/LICENSE.txt for license information.5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception6//7//===----------------------------------------------------------------------===//8///9/// \file10/// This file contains M68k target initializer.11///12//===----------------------------------------------------------------------===//13#include "llvm/MC/TargetRegistry.h"14 15using namespace llvm;16 17namespace llvm {18Target &getTheM68kTarget() {19  static Target TheM68kTarget;20  return TheM68kTarget;21}22} // namespace llvm23 24extern "C" LLVM_EXTERNAL_VISIBILITY void LLVMInitializeM68kTargetInfo() {25  RegisterTarget<Triple::m68k, /*HasJIT=*/true> X(26      getTheM68kTarget(), "m68k", "Motorola 68000 family", "M68k");27}28