LLVM 19.0.0git
MultiFormatConfig.h
Go to the documentation of this file.
1//===- MultiFormatConfig.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_MULTIFORMATCONFIG_H
10#define LLVM_OBJCOPY_MULTIFORMATCONFIG_H
11
12#include "llvm/Support/Error.h"
13
14namespace llvm {
15namespace objcopy {
16
17struct CommonConfig;
18struct ELFConfig;
19struct COFFConfig;
20struct MachOConfig;
21struct WasmConfig;
22struct XCOFFConfig;
23
25public:
26 virtual ~MultiFormatConfig() {}
27
28 virtual const CommonConfig &getCommonConfig() const = 0;
34};
35
36} // namespace objcopy
37} // namespace llvm
38
39#endif // LLVM_OBJCOPY_MULTIFORMATCONFIG_H
Tagged union holding either a T or a Error.
Definition: Error.h:474
virtual Expected< const XCOFFConfig & > getXCOFFConfig() const =0
virtual Expected< const WasmConfig & > getWasmConfig() const =0
virtual Expected< const ELFConfig & > getELFConfig() const =0
virtual Expected< const COFFConfig & > getCOFFConfig() const =0
virtual Expected< const MachOConfig & > getMachOConfig() const =0
virtual const CommonConfig & getCommonConfig() const =0
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18