Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-10 08:44:17

0001 //===- MultiFormatConfig.h --------------------------------------*- C++ -*-===//
0002 //
0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0004 // See https://llvm.org/LICENSE.txt for license information.
0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0006 //
0007 //===----------------------------------------------------------------------===//
0008 
0009 #ifndef LLVM_OBJCOPY_MULTIFORMATCONFIG_H
0010 #define LLVM_OBJCOPY_MULTIFORMATCONFIG_H
0011 
0012 #include "llvm/Support/Error.h"
0013 
0014 namespace llvm {
0015 namespace objcopy {
0016 
0017 struct CommonConfig;
0018 struct ELFConfig;
0019 struct COFFConfig;
0020 struct MachOConfig;
0021 struct WasmConfig;
0022 struct XCOFFConfig;
0023 
0024 class MultiFormatConfig {
0025 public:
0026   virtual ~MultiFormatConfig() {}
0027 
0028   virtual const CommonConfig &getCommonConfig() const = 0;
0029   virtual Expected<const ELFConfig &> getELFConfig() const = 0;
0030   virtual Expected<const COFFConfig &> getCOFFConfig() const = 0;
0031   virtual Expected<const MachOConfig &> getMachOConfig() const = 0;
0032   virtual Expected<const WasmConfig &> getWasmConfig() const = 0;
0033   virtual Expected<const XCOFFConfig &> getXCOFFConfig() const = 0;
0034 };
0035 
0036 } // namespace objcopy
0037 } // namespace llvm
0038 
0039 #endif // LLVM_OBJCOPY_MULTIFORMATCONFIG_H