mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 19:00:11 +01:00
The FunctionDecl created for calling the Carbon thunk now takes a `self` parameter for non-static methods, and the C++ thunk now passes an extra argument for that `self` parameter when needed. The CXXMethodDecl thunk created for calling methods now sets the storage class appropriate depending on whether the method is static or not. To reduce the number of parameters being passed around to thunk-building functions, added a `FunctionInfo` struct and pass that around instead.