Unify optimize yul code in CompilerContext/ContractCompiler

This commit is contained in:
Mathias Baumann
2020-02-11 13:55:47 +01:00
parent 1a3998648c
commit 80bd0f47cc
5 changed files with 41 additions and 53 deletions
+1
View File
@@ -155,6 +155,7 @@ function test_solc_behaviour()
rm "$stdout_path.bak"
else
sed -i.bak -e '/^Warning: This is a pre-release compiler version, please do not use it in production./d' "$stderr_path"
sed -i.bak -e 's/\(^[ ]*auxdata: \)0x[0-9a-f]*$/\1AUXDATA REMOVED/' "$stdout_path"
sed -i.bak -e 's/ Consider adding "pragma .*$//' "$stderr_path"
# Remove trailing empty lines. Needs a line break to make OSX sed happy.
sed -i.bak -e '1{/^$/d
+1 -1
View File
@@ -83,5 +83,5 @@ sub_0: assembly {
/* "--CODEGEN--":2:14 */
revert
auxdata: 0xa164736f6c63782a302e362e332d646576656c6f702e323032302e322e362b636f6d6d69742e31353237396436392e6d6f640032
auxdata: AUXDATA REMOVED
}