File indexing completed on 2026-05-10 08:44:17
0001
0002
0003
0004
0005
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 }
0037 }
0038
0039 #endif