mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
ec5af3d5cb
When importing descriptive info for a single function, the body walk now intercepts clift::UseOp operations and follows the symbol reference to find the target FunctionOp or GlobalVariableOp. Before this commit, the per-function overload of importDescriptiveInfo recorded the rename only for the current function (plus helpers and globals at module level, but not via UseOp). The deduplication logic makes it cheap and safe for a single FunctionOp or GlobalVariableOp to be used in many UseOps without importing descriptive info twice. The same holds if the FunctionOp is also visited at module level and not just via UseOp, as is the case for self-recursive functions.