Renamed the --julia CLI option to --yul

This commit is contained in:
Alex Beregszaszi 2018-06-12 18:42:12 +01:00
parent 014bbc6c97
commit ba2a7294d8
3 changed files with 9 additions and 8 deletions

View File

@ -4,6 +4,7 @@ Breaking Changes:
* ABI Encoder: Properly pad data from calldata (``msg.data`` and external function parameters). Use ``abi.encodePacked`` for unpadded encoding. * ABI Encoder: Properly pad data from calldata (``msg.data`` and external function parameters). Use ``abi.encodePacked`` for unpadded encoding.
* Code Generator: Signed right shift uses proper arithmetic shift, i.e. rounding towards negative infinity. Warning: this may silently change the semantics of existing code! * Code Generator: Signed right shift uses proper arithmetic shift, i.e. rounding towards negative infinity. Warning: this may silently change the semantics of existing code!
* Commandline interface: Remove obsolete ``--formal`` option. * Commandline interface: Remove obsolete ``--formal`` option.
* Commandline interface: Rename the ``--julia`` option to ``--yul``.
* Commandline interface: Require ``-`` if standard input is used as source. * Commandline interface: Require ``-`` if standard input is used as source.
* General: ``continue`` in a ``do...while`` loop jumps to the condition (it used to jump to the loop body). Warning: this may silently change the semantics of existing code. * General: ``continue`` in a ``do...while`` loop jumps to the condition (it used to jump to the loop body). Warning: this may silently change the semantics of existing code.
* General: Disallow ``sha3`` and ``suicide`` aliases. * General: Disallow ``sha3`` and ``suicide`` aliases.

View File

@ -92,7 +92,7 @@ static string const g_strGas = "gas";
static string const g_strHelp = "help"; static string const g_strHelp = "help";
static string const g_strInputFile = "input-file"; static string const g_strInputFile = "input-file";
static string const g_strInterface = "interface"; static string const g_strInterface = "interface";
static string const g_strJulia = "julia"; static string const g_strYul = "yul";
static string const g_strLicense = "license"; static string const g_strLicense = "license";
static string const g_strLibraries = "libraries"; static string const g_strLibraries = "libraries";
static string const g_strLink = "link"; static string const g_strLink = "link";
@ -134,7 +134,7 @@ static string const g_argCompactJSON = g_strCompactJSON;
static string const g_argGas = g_strGas; static string const g_argGas = g_strGas;
static string const g_argHelp = g_strHelp; static string const g_argHelp = g_strHelp;
static string const g_argInputFile = g_strInputFile; static string const g_argInputFile = g_strInputFile;
static string const g_argJulia = g_strJulia; static string const g_argYul = g_strYul;
static string const g_argLibraries = g_strLibraries; static string const g_argLibraries = g_strLibraries;
static string const g_argLink = g_strLink; static string const g_argLink = g_strLink;
static string const g_argMachine = g_strMachine; static string const g_argMachine = g_strMachine;
@ -597,8 +597,8 @@ Allowed options)",
"Switch to assembly mode, ignoring all options except --machine and assumes input is assembly." "Switch to assembly mode, ignoring all options except --machine and assumes input is assembly."
) )
( (
g_argJulia.c_str(), g_argYul.c_str(),
"Switch to JULIA mode, ignoring all options except --machine and assumes input is JULIA." "Switch to Yul mode, ignoring all options except --machine and assumes input is Yul."
) )
( (
g_argStrictAssembly.c_str(), g_argStrictAssembly.c_str(),
@ -607,7 +607,7 @@ Allowed options)",
( (
g_argMachine.c_str(), g_argMachine.c_str(),
po::value<string>()->value_name(boost::join(g_machineArgs, ",")), po::value<string>()->value_name(boost::join(g_machineArgs, ",")),
"Target machine in assembly or JULIA mode." "Target machine in assembly or Yul mode."
) )
( (
g_argLink.c_str(), g_argLink.c_str(),
@ -781,13 +781,13 @@ bool CommandLineInterface::processInput()
m_evmVersion = *versionOption; m_evmVersion = *versionOption;
} }
if (m_args.count(g_argAssemble) || m_args.count(g_argStrictAssembly) || m_args.count(g_argJulia)) if (m_args.count(g_argAssemble) || m_args.count(g_argStrictAssembly) || m_args.count(g_argYul))
{ {
// switch to assembly mode // switch to assembly mode
m_onlyAssemble = true; m_onlyAssemble = true;
using Input = AssemblyStack::Language; using Input = AssemblyStack::Language;
using Machine = AssemblyStack::Machine; using Machine = AssemblyStack::Machine;
Input inputLanguage = m_args.count(g_argJulia) ? Input::JULIA : (m_args.count(g_argStrictAssembly) ? Input::StrictAssembly : Input::Assembly); Input inputLanguage = m_args.count(g_argYul) ? Input::JULIA : (m_args.count(g_argStrictAssembly) ? Input::StrictAssembly : Input::Assembly);
Machine targetMachine = Machine::EVM; Machine targetMachine = Machine::EVM;
if (m_args.count(g_argMachine)) if (m_args.count(g_argMachine))
{ {

View File

@ -148,7 +148,7 @@ rm -rf "$TMPDIR"
printTask "Testing assemble, yul, strict-assembly..." printTask "Testing assemble, yul, strict-assembly..."
echo '{}' | "$SOLC" - --assemble &>/dev/null echo '{}' | "$SOLC" - --assemble &>/dev/null
echo '{}' | "$SOLC" - --julia &>/dev/null echo '{}' | "$SOLC" - --yul &>/dev/null
echo '{}' | "$SOLC" - --strict-assembly &>/dev/null echo '{}' | "$SOLC" - --strict-assembly &>/dev/null
printTask "Testing standard input..." printTask "Testing standard input..."