diff options
| author | 2015-09-14 21:27:03 +0000 | |
|---|---|---|
| committer | 2015-09-14 21:27:03 +0000 | |
| commit | e81783ad2a53c7ef1b70d8260790e379cc57cb19 (patch) | |
| tree | c36820d91358bb5cbf66160f85e4de7f36d8bfd4 /compiler/optimizing/nodes.cc | |
| parent | 37ef3c00282ba0bc81b95946728b9dd5f1586104 (diff) | |
| parent | 659562aaf133c41b8d90ec9216c07646f0f14362 (diff) | |
Merge "Revert "ART: Register allocation and runtime support for try/catch""
Diffstat (limited to 'compiler/optimizing/nodes.cc')
| -rw-r--r-- | compiler/optimizing/nodes.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/compiler/optimizing/nodes.cc b/compiler/optimizing/nodes.cc index 46ef04a868..b3cf0b3745 100644 --- a/compiler/optimizing/nodes.cc +++ b/compiler/optimizing/nodes.cc @@ -345,6 +345,16 @@ void HGraph::ComputeTryBlockInformation() { } } +bool HGraph::HasTryCatch() const { + for (size_t i = 0, e = blocks_.Size(); i < e; ++i) { + HBasicBlock* block = blocks_.Get(i); + if (block != nullptr && (block->IsTryBlock() || block->IsCatchBlock())) { + return true; + } + } + return false; +} + void HGraph::SimplifyCFG() { // Simplify the CFG for future analysis, and code generation: // (1): Split critical edges. |