mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
aa2597d13b
* StackFrameType() is removed. * StackFrame() is introduced in its place. * Use StackFrame().Type() to acess the stack frame type.
14 lines
418 B
Python
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"]
|