mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Indentation fixes in lllc
This commit is contained in:
parent
fda8499c15
commit
f67d34e4ec
@ -56,7 +56,7 @@ static void help()
|
||||
|
||||
static void version()
|
||||
{
|
||||
cout << "LLLC, the Lovely Little Language Compiler " << endl;
|
||||
cout << "LLLC, the Lovely Little Language Compiler" << endl;
|
||||
cout << "Version: " << VersionString << endl;
|
||||
exit(0);
|
||||
}
|
||||
@ -131,7 +131,9 @@ int main(int argc, char** argv)
|
||||
|
||||
vector<string> errors;
|
||||
if (src.empty())
|
||||
{
|
||||
errors.push_back("Empty file.");
|
||||
}
|
||||
else if (mode == Disassemble)
|
||||
{
|
||||
cout << disassemble(fromHex(src)) << endl;
|
||||
@ -145,12 +147,17 @@ int main(int argc, char** argv)
|
||||
cout.write((char const*)bs.data(), bs.size());
|
||||
}
|
||||
else if (mode == ParseTree)
|
||||
{
|
||||
cout << parseLLL(src) << endl;
|
||||
}
|
||||
else if (mode == Assembly)
|
||||
{
|
||||
cout << compileLLLToAsm(src, optimise ? true : false, &errors, contentsString) << endl;
|
||||
}
|
||||
|
||||
for (auto const& i: errors)
|
||||
cerr << i << endl;
|
||||
if ( errors.size() )
|
||||
if (errors.size())
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user