1 //===- MultiFormatConfig.h --------------------------------------*- C++ -*-===//
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
7 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_TOOLS_LLVM_OBJCOPY_MULTIFORMATCONFIG_H
10 #define LLVM_TOOLS_LLVM_OBJCOPY_MULTIFORMATCONFIG_H
12 #include "llvm/Support/Error.h"
23 class MultiFormatConfig
{
25 virtual ~MultiFormatConfig() {}
27 virtual const CommonConfig
&getCommonConfig() const = 0;
28 virtual Expected
<const ELFConfig
&> getELFConfig() const = 0;
29 virtual Expected
<const COFFConfig
&> getCOFFConfig() const = 0;
30 virtual Expected
<const MachOConfig
&> getMachOConfig() const = 0;
31 virtual Expected
<const WasmConfig
&> getWasmConfig() const = 0;
34 } // namespace objcopy
37 #endif // LLVM_TOOLS_LLVM_OBJCOPY_MULTIFORMATCONFIG_H