mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
6af6c8ffa8
We introduce a "dead code" optimization like pass on the AST. The goal is to simplify away, in a `SequenceNode`, everything that follows a node with sports a `nofallthrough behavior.
14 lines
268 B
C++
14 lines
268 B
C++
#pragma once
|
|
|
|
//
|
|
// This file is distributed under the MIT License. See LICENSE.md for details.
|
|
//
|
|
|
|
#include "FallThroughScopeAnalysis.h"
|
|
|
|
// Forward declarations
|
|
class ASTNode;
|
|
class ASTTree;
|
|
|
|
extern ASTNode *removeDeadCode(const model::Binary &Model, ASTTree &AST);
|