mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Track the list of blocks that form the body of a function. (#2941)
Use that list for lowering in lexical order, instead of rediscovering the list based on which blocks are referenced as branch targets.
This commit is contained in:
@@ -5,8 +5,8 @@
|
||||
// AUTOUPDATE
|
||||
// CHECK:STDOUT: cross_reference_irs_size: 1
|
||||
// CHECK:STDOUT: functions: [
|
||||
// CHECK:STDOUT: {name: str0, param_refs: block2, return_type: type0, body: block4},
|
||||
// CHECK:STDOUT: {name: str2, param_refs: block0, body: block5},
|
||||
// CHECK:STDOUT: {name: str0, param_refs: block2, return_type: type0, body: {block4}}},
|
||||
// CHECK:STDOUT: {name: str2, param_refs: block0, body: {block5}}},
|
||||
// CHECK:STDOUT: ]
|
||||
// CHECK:STDOUT: integer_literals: [
|
||||
// CHECK:STDOUT: ]
|
||||
|
||||
Reference in New Issue
Block a user