Files
revng-revng/lib/Pipeline/Kind.cpp
Alessandro Di Federico 5820908675 Remove and ban \file
2025-12-16 17:41:55 +01:00

30 lines
812 B
C++

/// A kind is a object associated to target do distinguish semantically
/// different targets that may share the same components path.
//
// This file is distributed under the MIT License. See LICENSE.md for details.
//
#include <vector>
#include "revng/Pipeline/Context.h"
#include "revng/Pipeline/Kind.h"
#include "revng/Pipeline/Target.h"
using namespace pipeline;
llvm::Error Kind::verify(const ContainerBase &Container,
const Target &T) const {
return llvm::Error::success();
}
void SingleElementKind::appendAllTargets(const Context &Context,
TargetsList &Out) const {
Out.push_back(Target(*this));
}
TargetsList Kind::allTargets(const Context &Context) const {
TargetsList Out;
appendAllTargets(Context, Out);
return Out;
}