mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-22 20:42:39 +00: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:
1 parent
5a90f660b9
commit
b908c6e274
61 files changed
+145
-176
No files matched your search
@@ -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