blob: 24257e731dfc013e8a6f63cbf8f1c47a4a711388 [file] [log] [blame]
Dan Gohman10e730a2015-06-29 23:51:55 +00001//===-- WebAssemblyTargetObjectFile.h - WebAssembly Object Info -*- C++ -*-===//
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
Adrian Prantl5f8f34e42018-05-01 15:54:18 +000011/// This file declares the WebAssembly-specific subclass of
Dan Gohman10e730a2015-06-29 23:51:55 +000012/// TargetLoweringObjectFile.
13///
14//===----------------------------------------------------------------------===//
15
16#ifndef LLVM_LIB_TARGET_WEBASSEMBLY_WEBASSEMBLYTARGETOBJECTFILE_H
17#define LLVM_LIB_TARGET_WEBASSEMBLY_WEBASSEMBLYTARGETOBJECTFILE_H
18
Dan Gohman5bf22fc2015-12-17 04:55:44 +000019#include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"
Dan Gohman10e730a2015-06-29 23:51:55 +000020
21namespace llvm {
22
Dan Gohman18eafb62017-02-22 01:23:18 +000023class WebAssemblyTargetObjectFileELF final
24 : public TargetLoweringObjectFileELF {
25public:
26 void Initialize(MCContext &Ctx, const TargetMachine &TM) override;
27};
28
29class WebAssemblyTargetObjectFile final : public TargetLoweringObjectFileWasm {
Dan Gohman10e730a2015-06-29 23:51:55 +000030public:
Dan Gohman5bf22fc2015-12-17 04:55:44 +000031 void Initialize(MCContext &Ctx, const TargetMachine &TM) override;
Dan Gohman10e730a2015-06-29 23:51:55 +000032};
33
34} // end namespace llvm
35
36#endif