LLVM  15.0.0git
ConfigManager.h
Go to the documentation of this file.
1 //===- ConfigManager.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_CONFIGMANAGER_H
10 #define LLVM_OBJCOPY_CONFIGMANAGER_H
11 
19 
20 namespace llvm {
21 namespace objcopy {
22 
24  virtual ~ConfigManager() {}
25 
26  const CommonConfig &getCommonConfig() const override { return Common; }
27 
28  Expected<const ELFConfig &> getELFConfig() const override { return ELF; }
29 
31 
33 
35 
37 
38  // All configs.
45 };
46 
47 } // namespace objcopy
48 } // namespace llvm
49 
50 #endif // LLVM_OBJCOPY_CONFIGMANAGER_H
llvm::objcopy::ConfigManager::getCommonConfig
const CommonConfig & getCommonConfig() const override
Definition: ConfigManager.h:26
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:17
llvm::objcopy::ConfigManager::XCOFF
XCOFFConfig XCOFF
Definition: ConfigManager.h:44
MachOConfig.h
MultiFormatConfig.h
llvm::objcopy::ConfigManager::MachO
MachOConfig MachO
Definition: ConfigManager.h:42
WasmConfig.h
llvm::Expected
Tagged union holding either a T or a Error.
Definition: APFloat.h:41
llvm::objcopy::ConfigManager::~ConfigManager
virtual ~ConfigManager()
Definition: ConfigManager.h:24
llvm::objcopy::ConfigManager::getCOFFConfig
Expected< const COFFConfig & > getCOFFConfig() const override
Definition: ConfigManager.cpp:16
llvm::objcopy::ConfigManager::COFF
COFFConfig COFF
Definition: ConfigManager.h:41
llvm::objcopy::ConfigManager::ELF
ELFConfig ELF
Definition: ConfigManager.h:40
llvm::objcopy::ELFConfig
Definition: ELFConfig.h:21
llvm::objcopy::ConfigManager
Definition: ConfigManager.h:23
llvm::objcopy::MachOConfig
Definition: MachOConfig.h:21
llvm::objcopy::COFFConfig
Definition: COFFConfig.h:18
llvm::objcopy::ConfigManager::Wasm
WasmConfig Wasm
Definition: ConfigManager.h:43
llvm::objcopy::MultiFormatConfig
Definition: MultiFormatConfig.h:24
CommonConfig.h
COFFConfig.h
llvm::objcopy::ConfigManager::Common
CommonConfig Common
Definition: ConfigManager.h:39
XCOFFConfig.h
llvm::objcopy::ConfigManager::getELFConfig
Expected< const ELFConfig & > getELFConfig() const override
Definition: ConfigManager.h:28
llvm::objcopy::WasmConfig
Definition: WasmConfig.h:16
ELFConfig.h
llvm::objcopy::ConfigManager::getXCOFFConfig
Expected< const XCOFFConfig & > getXCOFFConfig() const override
Definition: ConfigManager.cpp:71
llvm::objcopy::ConfigManager::getMachOConfig
Expected< const MachOConfig & > getMachOConfig() const override
Definition: ConfigManager.cpp:33
llvm::objcopy::ConfigManager::getWasmConfig
Expected< const WasmConfig & > getWasmConfig() const override
Definition: ConfigManager.cpp:52
llvm::objcopy::CommonConfig
Definition: CommonConfig.h:201
llvm::objcopy::XCOFFConfig
Definition: XCOFFConfig.h:16