Path: blob/main/contrib/llvm-project/llvm/tools/llvm-dwarfutil/Options.h
35231 views
//===- Options.h ------------------------------------------------*- C++ -*-===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#ifndef LLVM_TOOLS_LLVM_DWARFUTIL_OPTIONS_H9#define LLVM_TOOLS_LLVM_DWARFUTIL_OPTIONS_H1011#include <cstdint>12#include <string>1314namespace llvm {15namespace dwarfutil {1617/// The kind of tombstone value.18enum class TombstoneKind {19BFD, /// 0/[1:1]. Bfd default.20MaxPC, /// -1/-2. Assumed to match with21/// http://www.dwarfstd.org/ShowIssue.php?issue=200609.1.22Universal, /// both: BFD + MaxPC23Exec, /// match with address range of executable sections.24};2526/// The kind of accelerator table.27enum class DwarfUtilAccelKind : uint8_t {28None,29DWARF // DWARFv5: .debug_names30};3132struct Options {33std::string InputFileName;34std::string OutputFileName;35bool DoGarbageCollection = false;36bool DoODRDeduplication = false;37bool BuildSeparateDebugFile = false;38TombstoneKind Tombstone = TombstoneKind::Universal;39bool Verbose = false;40int NumThreads = 0;41bool Verify = false;42bool UseDWARFLinkerParallel = false;43DwarfUtilAccelKind AccelTableKind = DwarfUtilAccelKind::None;4445std::string getSeparateDebugFileName() const {46return OutputFileName + ".debug";47}48};4950} // namespace dwarfutil51} // namespace llvm5253#endif // LLVM_TOOLS_LLVM_DWARFUTIL_OPTIONS_H545556