LLVM
22.0.0git
include
llvm
ObjCopy
wasm
WasmObjcopy.h
Go to the documentation of this file.
1
//===- WasmObjcopy.h -------------------------------------------*- C++ -*-===//
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
#ifndef LLVM_OBJCOPY_WASM_WASMOBJCOPY_H
10
#define LLVM_OBJCOPY_WASM_WASMOBJCOPY_H
11
12
#include "
llvm/Support/Compiler.h
"
13
14
namespace
llvm
{
15
class
Error
;
16
class
raw_ostream
;
17
18
namespace
object
{
19
class
WasmObjectFile
;
20
}
// end namespace object
21
22
namespace
objcopy
{
23
struct
CommonConfig
;
24
struct
WasmConfig
;
25
26
namespace
wasm
{
27
/// Apply the transformations described by \p Config and \p WasmConfig
28
/// to \p In and writes the result into \p Out.
29
/// \returns any Error encountered whilst performing the operation.
30
LLVM_ABI
Error
executeObjcopyOnBinary
(
const
CommonConfig
&Config,
31
const
WasmConfig
&,
32
object::WasmObjectFile
&In,
33
raw_ostream
&Out);
34
35
}
// end namespace wasm
36
}
// end namespace objcopy
37
}
// end namespace llvm
38
39
#endif
// LLVM_OBJCOPY_WASM_WASMOBJCOPY_H
Compiler.h
LLVM_ABI
#define LLVM_ABI
Definition
Compiler.h:213
llvm::Error
Lightweight error class with error context and mandatory checking.
Definition
Error.h:159
llvm::object::WasmObjectFile
Definition
Wasm.h:127
llvm::raw_ostream
This class implements an extremely fast bulk output stream that can only output to a stream.
Definition
raw_ostream.h:53
llvm::objcopy::wasm
Definition
WasmObjcopy.h:26
llvm::objcopy::wasm::executeObjcopyOnBinary
LLVM_ABI Error executeObjcopyOnBinary(const CommonConfig &Config, const WasmConfig &, object::WasmObjectFile &In, raw_ostream &Out)
Apply the transformations described by Config and WasmConfig to In and writes the result into Out.
Definition
WasmObjcopy.cpp:145
llvm::objcopy
Definition
COFFConfig.h:15
llvm::object
Definition
DWARFDebugLoc.h:25
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition
AddressRanges.h:18
llvm::objcopy::CommonConfig
Definition
CommonConfig.h:208
llvm::objcopy::WasmConfig
Definition
WasmConfig.h:16
Generated on
for LLVM by
1.14.0