mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
95ddb2b36b
`BasicBlockNode` and `RegionCFG` classes are now template classes. This means that the `BasicBlockNode` class can be used as a generic wrapper for any type of object in the original graph (it is usually used to wrap a `llvm::BasicBlock *` for decompilation purposes, but in tests it can be used to wrap a `DotNode` object) that implementes `GraphTraits`.
15 lines
413 B
C++
15 lines
413 B
C++
/// \file Restructure.cpp
|
|
/// \brief FunctionPass that applies the comb to the RegionCFG of a function
|
|
|
|
//
|
|
// This file is distributed under the MIT License. See LICENSE.md for details.
|
|
//
|
|
|
|
// Local libraries includes
|
|
#include "revng-c/RestructureCFGPass/BasicBlockNodeImpl.h"
|
|
|
|
using namespace llvm;
|
|
|
|
// Explicit instantation for the `RegionCFG` template class.
|
|
template class BasicBlockNode<llvm::BasicBlock *>;
|