mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
3e49213b43
This commit drops `needsTopScopeDeclaration`. Now all the LocalVariables are declared at the top of the function. In DecompileFunction.cpp, the emission of LocalVariables if handled at the scope of GHAST `ASTNode`s instead of being LLVM BasicBlock-based. This enables in the future to design and implement an analysis that for each LocalVariable decides the C scope (represented by an `ASTNode`) where it's declaration should be emitted to always be visible in all its uses.