Open jacky860226 opened 3 years ago
This depends on the final EEI call. Actually, you can find that EVM external functions have totally different function types from EWASM ones. So we have to use different builtin functions to convert them into their own function types.
For example, in function
CodeGenModule::emitCall
:https://github.com/second-state/SOLL/blob/master/lib/CodeGen/CodeGenModule.cpp#L2142
https://github.com/second-state/SOLL/blob/master/lib/CodeGen/CodeGenModule.cpp#L2156
Type of
AddressPtr
is determined byisEVM()
orisEWASM()
.