[vala/wip/baedert/nullable: 17/25] basicblock: Add names for entry() and exit() blocks
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/baedert/nullable: 17/25] basicblock: Add names for entry() and exit() blocks
- Date: Tue, 8 Nov 2016 21:19:29 +0000 (UTC)
commit ef563c0e6087e4c46f1036301c250792853317e8
Author: Timm Bäder <mail baedert org>
Date: Tue Nov 8 07:59:42 2016 +0100
basicblock: Add names for entry() and exit() blocks
vala/valabasicblock.vala | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/vala/valabasicblock.vala b/vala/valabasicblock.vala
index 51214ac..471f531 100644
--- a/vala/valabasicblock.vala
+++ b/vala/valabasicblock.vala
@@ -56,8 +56,8 @@ public class Vala.BasicBlock {
public void print (int level = 0) {
print_level (level);
- stdout.printf ("BasicBlock (" + name + ", nulls: %d, non-nulls: %d)\n", null_vars.size,
- non_null_vars.size);
+ stdout.printf ("BasicBlock (" + name + ", nulls: %d, non-nulls: %d, phis: %d)\n",
null_vars.size,
+ non_null_vars.size, phi_functions.size);
foreach (var node in nodes) {
print_level (level);
stdout.printf ("- ");
@@ -72,9 +72,11 @@ public class Vala.BasicBlock {
}
public BasicBlock.entry () {
+ this.name = "entry";
}
public BasicBlock.exit () {
+ this.name = "exit";
}
public void add_node (CodeNode node) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]