Add function to generate function descriptors.
Prepend function descriptor to code generated by GenerateBody.