xref: /freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/WebAssemblyTargetObjectFile.cpp (revision 5ca8e32633c4ffbbcd6762e5888b6a4ba0708c6c)
1 //===-- WebAssemblyTargetObjectFile.cpp - WebAssembly Object Info ---------===//
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-exception
6 //
7 //===----------------------------------------------------------------------===//
8 ///
9 /// \file
10 /// This file defines the functions of the WebAssembly-specific subclass
11 /// of TargetLoweringObjectFile.
12 ///
13 //===----------------------------------------------------------------------===//
14 
15 #include "WebAssemblyTargetObjectFile.h"
16 #include "WebAssemblyTargetMachine.h"
17 
18 using namespace llvm;
19 
20 void WebAssemblyTargetObjectFile::Initialize(MCContext &Ctx,
21                                              const TargetMachine &TM) {
22   TargetLoweringObjectFileWasm::Initialize(Ctx, TM);
23   InitializeWasm();
24 }
25