mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
a9a0fdc236
When using revng through `revng daemon` the variable `InputPath` is not populated, leading to `lddtree` failing silently. Fall back to the input binary in the resume directory in case the the `InputPath` variable is empty.
19 lines
481 B
C++
19 lines
481 B
C++
#pragma once
|
|
|
|
//
|
|
// This file is distributed under the MIT License. See LICENSE.md for details.
|
|
//
|
|
|
|
#include <iosfwd>
|
|
|
|
#include "llvm/Support/CommandLine.h"
|
|
|
|
extern llvm::cl::OptionCategory MainCategory;
|
|
|
|
/// This is the path of the input binary. CLI tools should populate this on
|
|
/// every invocations. Users of this variable need to account for it being
|
|
/// possibly empty.
|
|
extern std::string InputPath;
|
|
|
|
std::ostream &pathToStream(const std::string &Path, std::ofstream &File);
|