mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
f8ffe38687
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.
22 lines
496 B
C
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
|