mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
1efcdba0e2
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241193 91177308-0d34-0410-b5e6-96231b3b80d8
31 lines
1.0 KiB
C++
31 lines
1.0 KiB
C++
//===-- WebAssemblyTargetInfo.cpp - WebAssembly Target Implementation -----===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
///
|
|
/// \file
|
|
/// \brief This file registers the WebAssembly target.
|
|
///
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "MCTargetDesc/WebAssemblyMCTargetDesc.h"
|
|
#include "llvm/ADT/Triple.h"
|
|
#include "llvm/Support/TargetRegistry.h"
|
|
using namespace llvm;
|
|
|
|
#define DEBUG_TYPE "wasm-target-info"
|
|
|
|
Target llvm::TheWebAssemblyTarget32;
|
|
Target llvm::TheWebAssemblyTarget64;
|
|
|
|
extern "C" void LLVMInitializeWebAssemblyTargetInfo() {
|
|
RegisterTarget<Triple::wasm32> X(TheWebAssemblyTarget32, "wasm32",
|
|
"WebAssembly 32-bit");
|
|
RegisterTarget<Triple::wasm64> Y(TheWebAssemblyTarget64, "wasm64",
|
|
"WebAssembly 64-bit");
|
|
}
|