Files
revng-revng/lib/Model/Importer/DebugInfo/ImportDebugInfoHelper.h
Giacomo Vercesi f8ffe38687 Unify cache directory logic
Make the cache directory logic uniform in Python and C++, move the
respective implementations under support since it's project-wide logic
and not exclusive to debug-info.
2024-10-01 13:38:13 +02:00

22 lines
496 B
C

#pragma once
//
// This file is distributed under the MIT License. See LICENSE.md for details.
//
#include "llvm/Support/Path.h"
#include "llvm/Support/Process.h"
#include "revng/Support/Assert.h"
#include "revng/Support/ProgramRunner.h"
namespace {
inline int runFetchDebugInfo(llvm::StringRef InputFileName) {
revng_assert(::Runner.isProgramAvailable("revng"));
return ::Runner.run("revng",
{ "model", "fetch-debuginfo", InputFileName.str() });
}
} // namespace