mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
yulopti: Fix conflict between 'l' in yulopti and OptimiserSuite and make future conflicts less likely
- OptimizerSuite uses letters so switching to punctuation marks in yulopti should help.
This commit is contained in:
parent
d3d1520870
commit
156bfadad3
@ -154,9 +154,9 @@ public:
|
||||
}
|
||||
map<char, string> const& abbreviationMap = OptimiserSuite::stepAbbreviationToNameMap();
|
||||
map<char, string> const& extraOptions = {
|
||||
{'q', "quit"},
|
||||
{'l', "VarNameCleaner"},
|
||||
{'p', "StackCompressor"},
|
||||
{'#', "quit"},
|
||||
{',', "VarNameCleaner"},
|
||||
{';', "StackCompressor"},
|
||||
};
|
||||
|
||||
printUsageBanner(abbreviationMap, extraOptions, 4);
|
||||
@ -175,14 +175,14 @@ public:
|
||||
}
|
||||
else switch (option)
|
||||
{
|
||||
case 'q':
|
||||
case '#':
|
||||
return;
|
||||
case 'l':
|
||||
case ',':
|
||||
VarNameCleaner::run(context, *m_ast);
|
||||
// VarNameCleaner destroys the unique names guarantee of the disambiguator.
|
||||
disambiguated = false;
|
||||
break;
|
||||
case 'p':
|
||||
case ';':
|
||||
{
|
||||
Object obj;
|
||||
obj.code = m_ast;
|
||||
|
Loading…
Reference in New Issue
Block a user