mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
TTG: pull dump helper into the template
This commit is contained in:
committed by
Alessandro Di Federico
parent
927e8006b9
commit
9e6bf29f74
@@ -291,14 +291,9 @@ bool ControlFlowGraph::verify(const model::Binary &Binary,
|
||||
return true;
|
||||
}
|
||||
|
||||
void ControlFlowGraph::dump() const {
|
||||
::serialize(dbg, *this);
|
||||
}
|
||||
|
||||
void ControlFlowGraph::dumpCFG(const model::Binary &Binary) const {
|
||||
auto [Graph,
|
||||
_] = buildControlFlowGraph<FunctionCFG>(Blocks(), Entry(), Binary);
|
||||
WriteGraph(&Graph, "function-metadata");
|
||||
auto [G, _] = buildControlFlowGraph<FunctionCFG>(Blocks(), Entry(), Binary);
|
||||
WriteGraph(&G, "function-metadata");
|
||||
}
|
||||
|
||||
bool FunctionEdgeBase::verify() const {
|
||||
@@ -346,23 +341,11 @@ bool FunctionEdgeBase::verify(model::VerifyHelper &VH) const {
|
||||
return true;
|
||||
}
|
||||
|
||||
void FunctionEdgeBase::dump() const {
|
||||
serialize(dbg, *this);
|
||||
}
|
||||
|
||||
void CallEdge::dump() const {
|
||||
serialize(dbg, *this);
|
||||
}
|
||||
|
||||
model::Identifier BasicBlock::name() const {
|
||||
using llvm::Twine;
|
||||
return model::Identifier(std::string("bb_") + ID().toString());
|
||||
}
|
||||
|
||||
void BasicBlock::dump() const {
|
||||
serialize(dbg, *this);
|
||||
}
|
||||
|
||||
bool BasicBlock::verify() const {
|
||||
return verify(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user