2015-12-30 06:46:15 -05:00
|
|
|
//===-- WebAssemblyTargetObjectFile.cpp - WebAssembly Object Info ---------===//
|
|
|
|
|
//
|
2019-08-20 16:50:12 -04:00
|
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
|
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
|
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
2015-12-30 06:46:15 -05:00
|
|
|
//
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
///
|
|
|
|
|
/// \file
|
2018-07-28 06:51:19 -04:00
|
|
|
/// This file defines the functions of the WebAssembly-specific subclass
|
2015-12-30 06:46:15 -05:00
|
|
|
/// of TargetLoweringObjectFile.
|
|
|
|
|
///
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
|
|
#include "WebAssemblyTargetObjectFile.h"
|
|
|
|
|
#include "WebAssemblyTargetMachine.h"
|
|
|
|
|
|
2018-07-28 06:51:19 -04:00
|
|
|
using namespace llvm;
|
2017-04-16 12:01:22 -04:00
|
|
|
|
|
|
|
|
void WebAssemblyTargetObjectFile::Initialize(MCContext &Ctx,
|
|
|
|
|
const TargetMachine &TM) {
|
|
|
|
|
TargetLoweringObjectFileWasm::Initialize(Ctx, TM);
|
|
|
|
|
InitializeWasm();
|
|
|
|
|
}
|