Dan Gohman | 5bf22fc | 2015-12-17 04:55:44 +0000 | [diff] [blame] | 1 | //===-- WebAssemblyTargetObjectFile.cpp - WebAssembly Object Info ---------===// |
| 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 | /// |
| 10 | /// \file |
| 11 | /// \brief This file defines the functions of the WebAssembly-specific subclass |
| 12 | /// of TargetLoweringObjectFile. |
| 13 | /// |
| 14 | //===----------------------------------------------------------------------===// |
| 15 | |
| 16 | #include "WebAssemblyTargetObjectFile.h" |
| 17 | #include "WebAssemblyTargetMachine.h" |
| 18 | using namespace llvm; |
| 19 | |
Dan Gohman | 18eafb6 | 2017-02-22 01:23:18 +0000 | [diff] [blame] | 20 | void WebAssemblyTargetObjectFileELF::Initialize(MCContext &Ctx, |
| 21 | const TargetMachine &TM) { |
Dan Gohman | 5bf22fc | 2015-12-17 04:55:44 +0000 | [diff] [blame] | 22 | TargetLoweringObjectFileELF::Initialize(Ctx, TM); |
| 23 | InitializeELF(TM.Options.UseInitArray); |
| 24 | } |
Dan Gohman | 18eafb6 | 2017-02-22 01:23:18 +0000 | [diff] [blame] | 25 | |
| 26 | void WebAssemblyTargetObjectFile::Initialize(MCContext &Ctx, |
| 27 | const TargetMachine &TM) { |
| 28 | TargetLoweringObjectFileWasm::Initialize(Ctx, TM); |
| 29 | InitializeWasm(); |
| 30 | } |