summaryrefslogtreecommitdiff
path: root/src/analysis/cfg.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/analysis/cfg.h')
-rw-r--r--src/analysis/cfg.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/analysis/cfg.h b/src/analysis/cfg.h
index baabe9591..b05f3c47c 100644
--- a/src/analysis/cfg.h
+++ b/src/analysis/cfg.h
@@ -51,8 +51,13 @@ struct BasicBlock {
Index getIndex() const { return index; }
+ bool isEntry() const { return entry; }
+ bool isExit() const { return exit; }
+
private:
Index index;
+ bool entry = false;
+ bool exit = false;
std::vector<Expression*> insts;
std::vector<const BasicBlock*> predecessors;
std::vector<const BasicBlock*> successors;