mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
9e9451247b
The --import-debug-info CLI flag and the ImporterOptions:: AdditionalDebugInfoPaths field it populated were a side-channel that loaded extra DWARF files outside the normal ELF dependency-resolution path. It bypassed the symbol-aware machinery and is no longer needed.
29 lines
550 B
C++
29 lines
550 B
C++
#pragma once
|
|
|
|
//
|
|
// This file is distributed under the MIT License. See LICENSE.md for details.
|
|
//
|
|
|
|
#include <cstdint>
|
|
|
|
#include "llvm/Support/CommandLine.h"
|
|
|
|
enum class DebugInfoLevel {
|
|
No,
|
|
Yes,
|
|
IgnoreLibraries
|
|
};
|
|
|
|
struct ImporterOptions {
|
|
const uint64_t BaseAddress;
|
|
|
|
const DebugInfoLevel DebugInfo;
|
|
const bool EnableRemoteDebugInfo;
|
|
};
|
|
|
|
[[nodiscard]] const ImporterOptions importerOptions();
|
|
|
|
extern llvm::cl::opt<uint64_t> BaseAddress;
|
|
extern llvm::cl::opt<DebugInfoLevel> DebugInfo;
|
|
extern llvm::cl::opt<bool> EnableRemoteDebugInfo;
|