LLVM 23.0.0git
GsymCreatorV2.h
Go to the documentation of this file.
1//===- GsymCreatorV2.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_GSYMCREATORV2_H
10#define LLVM_DEBUGINFO_GSYM_GSYMCREATORV2_H
11
14
15namespace llvm {
16namespace gsym {
17
18/// GsymCreatorV2 emits GSYM V2 data with a GlobalData-based section layout.
19class GsymCreatorV2 : public GsymCreator {
21 std::unique_ptr<GsymCreator> createNew(bool Quiet) const override {
22 return std::make_unique<GsymCreatorV2>(Quiet);
23 }
24
25public:
27
28 uint8_t getStringOffsetSize() const override {
30 }
31 LLVM_ABI llvm::Error encode(FileWriter &O) const override;
32};
33
34} // namespace gsym
35} // namespace llvm
36
37#endif // LLVM_DEBUGINFO_GSYM_GSYMCREATORV2_H
#define LLVM_ABI
Definition Compiler.h:213
Lightweight error class with error context and mandatory checking.
Definition Error.h:159
A simplified binary data writer class that doesn't require targets, target definitions,...
Definition FileWriter.h:30
LLVM_ABI llvm::Error encode(FileWriter &O) const override
For V2 file layout, see HeaderV2.h.
uint8_t getStringOffsetSize() const override
Get the size in bytes needed for encoding string offsets.
GsymCreatorV2(bool Quiet=false)
virtual uint64_t calculateHeaderAndTableSize() const =0
Calculate the byte size of the GSYM header and tables sizes.
LLVM_ABI GsymCreator(bool Quiet=false)
This is an optimization pass for GlobalISel generic memory operations.
static constexpr uint8_t getStringOffsetSize()
Return the size in bytes of string table offsets.
Definition HeaderV2.h:93