2012-06-19 20:02:35 +02:00
|
|
|
//===------ utils/obj2yaml.hpp - obj2yaml conversion tool -------*- C++ -*-===//
|
|
|
|
//
|
2019-01-19 09:50:56 +01:00
|
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
2012-06-19 20:02:35 +02:00
|
|
|
//
|
|
|
|
// This file declares some helper routines, and also the format-specific
|
|
|
|
// writers. To add a new format, add the declaration here, and, in a separate
|
|
|
|
// source file, implement it.
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2014-08-13 18:26:38 +02:00
|
|
|
#ifndef LLVM_TOOLS_OBJ2YAML_OBJ2YAML_H
|
|
|
|
#define LLVM_TOOLS_OBJ2YAML_OBJ2YAML_H
|
2012-06-19 20:02:35 +02:00
|
|
|
|
2014-05-07 07:18:51 +02:00
|
|
|
#include "llvm/Object/COFF.h"
|
2019-04-02 13:58:37 +02:00
|
|
|
#include "llvm/Object/Minidump.h"
|
2017-03-30 21:44:09 +02:00
|
|
|
#include "llvm/Object/Wasm.h"
|
[XCOFF] Add functionality for parsing AIX XCOFF object file headers
Summary:
1. Add functionality for parsing AIX XCOFF object files headers.
2. Only support 32-bit AIX XCOFF object files in this patch.
3. Print out the AIX XCOFF object file header in YAML format.
Reviewers: sfertile, hubert.reinterpretcast, jasonliu, mstorsjo, zturner, rnk
Reviewed By: sfertile, hubert.reinterpretcast
Subscribers: jsji, mgorny, hiraditya, jdoerfert, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D59419
Patch by Digger Lin
llvm-svn: 357663
2019-04-04 02:53:21 +02:00
|
|
|
#include "llvm/Object/XCOFFObjectFile.h"
|
2012-12-04 11:37:14 +01:00
|
|
|
#include "llvm/Support/raw_ostream.h"
|
2014-06-12 19:38:55 +02:00
|
|
|
#include <system_error>
|
2012-06-19 20:02:35 +02:00
|
|
|
|
2014-06-12 16:11:22 +02:00
|
|
|
std::error_code coff2yaml(llvm::raw_ostream &Out,
|
|
|
|
const llvm::object::COFFObjectFile &Obj);
|
2019-07-15 13:53:39 +02:00
|
|
|
llvm::Error elf2yaml(llvm::raw_ostream &Out,
|
2014-06-12 16:11:22 +02:00
|
|
|
const llvm::object::ObjectFile &Obj);
|
2019-12-25 08:05:56 +01:00
|
|
|
llvm::Error macho2yaml(llvm::raw_ostream &Out,
|
2016-06-24 22:42:28 +02:00
|
|
|
const llvm::object::Binary &Obj);
|
2019-04-02 13:58:37 +02:00
|
|
|
llvm::Error minidump2yaml(llvm::raw_ostream &Out,
|
|
|
|
const llvm::object::MinidumpFile &Obj);
|
[XCOFF] Add functionality for parsing AIX XCOFF object file headers
Summary:
1. Add functionality for parsing AIX XCOFF object files headers.
2. Only support 32-bit AIX XCOFF object files in this patch.
3. Print out the AIX XCOFF object file header in YAML format.
Reviewers: sfertile, hubert.reinterpretcast, jasonliu, mstorsjo, zturner, rnk
Reviewed By: sfertile, hubert.reinterpretcast
Subscribers: jsji, mgorny, hiraditya, jdoerfert, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D59419
Patch by Digger Lin
llvm-svn: 357663
2019-04-04 02:53:21 +02:00
|
|
|
std::error_code xcoff2yaml(llvm::raw_ostream &Out,
|
|
|
|
const llvm::object::XCOFFObjectFile &Obj);
|
2017-03-30 21:44:09 +02:00
|
|
|
std::error_code wasm2yaml(llvm::raw_ostream &Out,
|
|
|
|
const llvm::object::WasmObjectFile &Obj);
|
2012-06-19 20:02:35 +02:00
|
|
|
|
2016-12-07 22:47:28 +01:00
|
|
|
// Forward decls for dwarf2yaml
|
|
|
|
namespace llvm {
|
2017-07-20 00:27:28 +02:00
|
|
|
class DWARFContext;
|
2016-12-07 22:47:28 +01:00
|
|
|
namespace DWARFYAML {
|
2016-12-08 18:46:57 +01:00
|
|
|
struct Data;
|
2016-12-07 22:47:28 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-08-07 06:07:31 +02:00
|
|
|
void dumpDebugAbbrev(llvm::DWARFContext &DCtx, llvm::DWARFYAML::Data &Y);
|
2020-09-16 08:46:12 +02:00
|
|
|
llvm::Error dumpDebugAddr(llvm::DWARFContext &DCtx, llvm::DWARFYAML::Data &Y);
|
2020-08-05 13:18:33 +02:00
|
|
|
llvm::Error dumpDebugARanges(llvm::DWARFContext &DCtx,
|
|
|
|
llvm::DWARFYAML::Data &Y);
|
2020-08-07 06:07:31 +02:00
|
|
|
void dumpDebugPubSections(llvm::DWARFContext &DCtx, llvm::DWARFYAML::Data &Y);
|
|
|
|
void dumpDebugInfo(llvm::DWARFContext &DCtx, llvm::DWARFYAML::Data &Y);
|
|
|
|
void dumpDebugLines(llvm::DWARFContext &DCtx, llvm::DWARFYAML::Data &Y);
|
|
|
|
llvm::Error dumpDebugRanges(llvm::DWARFContext &DCtx, llvm::DWARFYAML::Data &Y);
|
2020-09-08 10:08:42 +02:00
|
|
|
llvm::Error dumpDebugStrings(llvm::DWARFContext &DCtx,
|
|
|
|
llvm::DWARFYAML::Data &Y);
|
2020-08-07 06:07:31 +02:00
|
|
|
|
2012-06-19 20:02:35 +02:00
|
|
|
#endif
|