revert registering function StringTable.stringConstant

This commit is contained in:
Volker Berlin 2022-07-17 20:56:45 +02:00
parent 3e5d966548
commit a32b3af059
No known key found for this signature in database
GPG Key ID: 988423EF815BE4CB
2 changed files with 2 additions and 2 deletions

View File

@ -116,7 +116,6 @@ public class ModuleGenerator {
scanLibraries( libraries );
//register some synthetic functions
strings.getStringConstantFunction();
types.getTypeTableMemoryOffsetFunctionName();
}

View File

@ -82,7 +82,8 @@ public class StringManager extends LinkedHashMap<String, Integer> {
return "i32.const " + stringMemoryOffset;
}
};
functions.addReplacement( offsetFunction, null );
functions.markAsNeededAndReplaceIfExists( offsetFunction );
functions.markAsNeeded( stringConstantFunction, false );
}
return stringConstantFunction;