Files
Lauri Vasama aa2597d13b model::Function: add stack frame name and comment
* StackFrameType() is removed.
* StackFrame() is introduced in its place.
* Use StackFrame().Type() to acess the stack frame type.
2026-02-13 08:41:39 +02:00

14 lines
418 B
Python

#
# This file is distributed under the MIT License. See LICENSE.md for details.
#
from revng.model.migrations import MigrationBase
class Migration(MigrationBase):
def migrate(self, model):
for function in model.get("Functions", {}):
if "StackFrameType" in function:
function["StackFrame"] = {"Type": function["StackFrameType"]}
del function["StackFrameType"]