xref: /aosp_15_r20/external/llvm/tools/obj2yaml/obj2yaml.h (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker //===------ utils/obj2yaml.hpp - obj2yaml conversion tool -------*- C++ -*-===//
2*9880d681SAndroid Build Coastguard Worker //
3*9880d681SAndroid Build Coastguard Worker //                     The LLVM Compiler Infrastructure
4*9880d681SAndroid Build Coastguard Worker //
5*9880d681SAndroid Build Coastguard Worker // This file is distributed under the University of Illinois Open Source
6*9880d681SAndroid Build Coastguard Worker // License. See LICENSE.TXT for details.
7*9880d681SAndroid Build Coastguard Worker //
8*9880d681SAndroid Build Coastguard Worker // This file declares some helper routines, and also the format-specific
9*9880d681SAndroid Build Coastguard Worker // writers. To add a new format, add the declaration here, and, in a separate
10*9880d681SAndroid Build Coastguard Worker // source file, implement it.
11*9880d681SAndroid Build Coastguard Worker //===----------------------------------------------------------------------===//
12*9880d681SAndroid Build Coastguard Worker 
13*9880d681SAndroid Build Coastguard Worker #ifndef LLVM_TOOLS_OBJ2YAML_OBJ2YAML_H
14*9880d681SAndroid Build Coastguard Worker #define LLVM_TOOLS_OBJ2YAML_OBJ2YAML_H
15*9880d681SAndroid Build Coastguard Worker 
16*9880d681SAndroid Build Coastguard Worker #include "llvm/Object/COFF.h"
17*9880d681SAndroid Build Coastguard Worker #include "llvm/Support/raw_ostream.h"
18*9880d681SAndroid Build Coastguard Worker #include <system_error>
19*9880d681SAndroid Build Coastguard Worker 
20*9880d681SAndroid Build Coastguard Worker std::error_code coff2yaml(llvm::raw_ostream &Out,
21*9880d681SAndroid Build Coastguard Worker                           const llvm::object::COFFObjectFile &Obj);
22*9880d681SAndroid Build Coastguard Worker std::error_code elf2yaml(llvm::raw_ostream &Out,
23*9880d681SAndroid Build Coastguard Worker                          const llvm::object::ObjectFile &Obj);
24*9880d681SAndroid Build Coastguard Worker std::error_code macho2yaml(llvm::raw_ostream &Out,
25*9880d681SAndroid Build Coastguard Worker                            const llvm::object::Binary &Obj);
26*9880d681SAndroid Build Coastguard Worker 
27*9880d681SAndroid Build Coastguard Worker #endif
28