summaryrefslogtreecommitdiffstats
path: root/compiler/optimizing/builder.cc
diff options
context:
space:
mode:
authorNicolas Geoffray <ngeoffray@google.com>2014-02-28 10:23:58 +0000
committerNicolas Geoffray <ngeoffray@google.com>2014-03-04 16:19:11 +0000
commitd4dd255db1d110ceb5551f6d95ff31fb57420994 (patch)
tree93c9dfff8d16f2b9675c35477cc4bcd8ea3f630c /compiler/optimizing/builder.cc
parentb565506a63e75dac4a8bb9dd54dabf5259e5b95f (diff)
downloadart-d4dd255db1d110ceb5551f6d95ff31fb57420994.zip
art-d4dd255db1d110ceb5551f6d95ff31fb57420994.tar.gz
art-d4dd255db1d110ceb5551f6d95ff31fb57420994.tar.bz2
Add codegen support to the optimizing compiler.
Change-Id: I9aae76908ff1d6e64fb71a6718fc1426b67a5c28
Diffstat (limited to 'compiler/optimizing/builder.cc')
-rw-r--r--compiler/optimizing/builder.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/optimizing/builder.cc b/compiler/optimizing/builder.cc
index e6db7bc..f78e56b 100644
--- a/compiler/optimizing/builder.cc
+++ b/compiler/optimizing/builder.cc
@@ -29,6 +29,8 @@ HGraph* HGraphBuilder::BuildGraph(const uint16_t* code_ptr, const uint16_t* code
entry_block_->AddInstruction(new (arena_) HGoto());
exit_block_ = new (arena_) HBasicBlock(graph_);
exit_block_->AddInstruction(new (arena_) HExit());
+ graph_->set_entry_block(entry_block_);
+ graph_->set_exit_block(exit_block_);
// To avoid splitting blocks, we compute ahead of time the instructions that
// start a new block, and create these blocks.