mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
The reason that this is being done is that: 1. SILGenFunction is passed around all throughout SILGen, including in between APIs some of which call the SILGenFunction variable SGF and others that call it gen. 2. Thus when one is debugging code in SILGen, one wastes time figuring out what the variable name of SILGenFunction is in the current frame. I did not do this by hand. I did this by: 1. Grepping for "SILGenFunction &gen". 2. By hand inspecting that the match was truly a SILGenFunction &gen site. 3. If so, use libclang tooling to rename the variable to SGF. So I did not update any use sites.
5.1 KiB
5.1 KiB