|
|
|||
File indexing completed on 2026-05-10 08:44:17
0001 //===- ObjCopy.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_OBJCOPY_H 0010 #define LLVM_OBJCOPY_OBJCOPY_H 0011 0012 #include "llvm/Support/Error.h" 0013 0014 namespace llvm { 0015 class raw_ostream; 0016 0017 namespace object { 0018 class Archive; 0019 class Binary; 0020 } // end namespace object 0021 0022 namespace objcopy { 0023 class MultiFormatConfig; 0024 0025 /// Applies the transformations described by \p Config to 0026 /// each member in archive \p Ar. 0027 /// Writes a result in a file specified by \p Config.OutputFilename. 0028 /// \returns any Error encountered whilst performing the operation. 0029 Error executeObjcopyOnArchive(const MultiFormatConfig &Config, 0030 const object::Archive &Ar); 0031 0032 /// Applies the transformations described by \p Config to \p In and writes 0033 /// the result into \p Out. This function does the dispatch based on the 0034 /// format of the input binary (COFF, ELF, MachO or wasm). 0035 /// \returns any Error encountered whilst performing the operation. 0036 Error executeObjcopyOnBinary(const MultiFormatConfig &Config, 0037 object::Binary &In, raw_ostream &Out); 0038 0039 } // end namespace objcopy 0040 } // end namespace llvm 0041 0042 #endif // LLVM_OBJCOPY_OBJCOPY_H
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|