LLVM 22.0.0git
ObjectFileTransformer.h
Go to the documentation of this file.
1//===- ObjectFileTransformer.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_DEBUGINFO_GSYM_OBJECTFILETRANSFORMER_H
10#define LLVM_DEBUGINFO_GSYM_OBJECTFILETRANSFORMER_H
11
13#include "llvm/Support/Error.h"
14
15namespace llvm {
16
17namespace object {
18class ObjectFile;
19}
20
21namespace gsym {
22
23class GsymCreator;
24class OutputAggregator;
25
27public:
28 /// Extract any object file data that is needed by the GsymCreator.
29 ///
30 /// The extracted information includes the UUID of the binary and converting
31 /// all function symbols from any symbol tables into FunctionInfo objects.
32 ///
33 /// \param Obj The object file that contains the DWARF debug info.
34 ///
35 /// \param Log The stream to log warnings and non fatal issues to. If NULL,
36 /// don't log.
37 ///
38 /// \param Gsym The GSYM creator to populate with the function information
39 /// from the debug info.
40 ///
41 /// \returns An error indicating any fatal issues that happen when parsing
42 /// the DWARF, or Error::success() if all goes well.
44 OutputAggregator &Output,
45 GsymCreator &Gsym);
46};
47
48} // namespace gsym
49} // namespace llvm
50
51#endif // LLVM_DEBUGINFO_GSYM_OBJECTFILETRANSFORMER_H
#define LLVM_ABI
Definition: Compiler.h:213
Lightweight error class with error context and mandatory checking.
Definition: Error.h:159
GsymCreator is used to emit GSYM data to a stand alone file or section within a file.
Definition: GsymCreator.h:135
static LLVM_ABI llvm::Error convert(const object::ObjectFile &Obj, OutputAggregator &Output, GsymCreator &Gsym)
Extract any object file data that is needed by the GsymCreator.
This class is the base class for all object file types.
Definition: ObjectFile.h:231
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18