mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
7eeb9f50c0
`revng pipeline --verbose` will now print a list of equivalent commands for the current invocation.
32 lines
733 B
C++
32 lines
733 B
C++
#pragma once
|
|
|
|
//
|
|
// This file is distributed under the MIT License. See LICENSE.md for details.
|
|
//
|
|
|
|
#include "llvm/ADT/ArrayRef.h"
|
|
#include "llvm/Support/raw_ostream.h"
|
|
|
|
#include "revng/Pipeline/Contract.h"
|
|
#include "revng/Pipeline/Target.h"
|
|
#include "revng/Pipes/FileContainer.h"
|
|
|
|
namespace revng::pipes {
|
|
|
|
class ImportBinaryPipe {
|
|
public:
|
|
static constexpr auto Name = "ImportBinary";
|
|
|
|
public:
|
|
std::array<pipeline::ContractGroup, 1> getContract() const { return {}; }
|
|
|
|
public:
|
|
void run(pipeline::Context &Context, const FileContainer &SourceBinary);
|
|
|
|
void print(const pipeline::Context &Ctx,
|
|
llvm::raw_ostream &OS,
|
|
llvm::ArrayRef<std::string> ContainerNames) const;
|
|
};
|
|
|
|
} // namespace revng::pipes
|