Files
revng-revng/lib/Yield/ControlFlow/ConvertFromEFA.cpp
Ivan Krysak 7d235f4fd0 Enforce licence header consistency
Also do some basic cleanup: capitalize first letters, add `.`
at the end of the sentences, and so on.
2023-07-03 15:23:10 +00:00

28 lines
946 B
C++

/// \file ConvertFromEFA.cpp
//
// This file is distributed under the MIT License. See LICENSE.md for details.
//
#include "revng/EarlyFunctionAnalysis/CallEdge.h"
#include "revng/EarlyFunctionAnalysis/FunctionEdge.h"
#include "revng/EarlyFunctionAnalysis/FunctionEdgeBase.h"
#include "revng/Yield/CallEdge.h"
#include "revng/Yield/FunctionEdge.h"
#include "revng/Yield/FunctionEdgeBase.h"
yield::CallEdge::CallEdge(const efa::CallEdge &Source) {
Kind() = yield::FunctionEdgeBaseKind::CallEdge;
Destination() = Source.Destination();
Type() = yield::FunctionEdgeType::from(Source.Type());
DynamicFunction() = Source.DynamicFunction();
IsTailCall() = Source.IsTailCall();
Attributes() = Source.Attributes();
}
yield::FunctionEdge::FunctionEdge(const efa::FunctionEdge &Source) {
Kind() = yield::FunctionEdgeBaseKind::FunctionEdge;
Destination() = Source.Destination();
Type() = yield::FunctionEdgeType::from(Source.Type());
}