Indentation fixes in lllc

This commit is contained in:
Alex Beregszaszi 2017-10-18 12:32:34 +01:00
parent fda8499c15
commit f67d34e4ec

View File

@ -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,9 +147,14 @@ 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())