Files
revng-revng/include/revng/Support/CommandLine.h
Giacomo Vercesi a9a0fdc236 ELFImport: fix input file missing
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.
2025-03-14 13:05:39 +01:00

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);