mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
e9528f4647
This commit changes the prototype of getCopeType, so that it now takes 2 arguments. 1. The llvm::Type returned by the Copy function. This can be any scalar llvm::Type. 2. The llvm::type of the argument representing the reference to the value being copied. This should be a pointer-sized integer, where pointer-sized means with the same size of a pointer in the architecture in the input binary. The second argument is not strictly necessary for now, because the whole decompilation framework expects a binary with a single architecture, hence a well defined unambiguous pointer size. This will be used fully only when we start supporting multiple binaries. Whenever that happens, if we haven't already fully dropped the Copy helper function we will have to update the associated OpaqueFunctionsPool to a type pair as key: the return type and the type of the argument.