diff --git a/src/de/inetsoftware/jwebassembly/module/WasmInstruction.java b/src/de/inetsoftware/jwebassembly/module/WasmInstruction.java index be469ab..a69473a 100644 --- a/src/de/inetsoftware/jwebassembly/module/WasmInstruction.java +++ b/src/de/inetsoftware/jwebassembly/module/WasmInstruction.java @@ -57,4 +57,12 @@ abstract class WasmInstruction { int getCodePosition() { return javaCodePos; } + + /** + * Set a new code position after reorganize the order + * @param newPos new position + */ + void setCodePosition( int newPos ) { + this.javaCodePos = newPos; + } }