Browse Source

Code cleanup

cl-refactor
Paweł Bylica 10 years ago
parent
commit
bd1e66dd11
  1. 5
      evmjit/libevmjit/ExecutionEngine.cpp

5
evmjit/libevmjit/ExecutionEngine.cpp

@ -91,10 +91,11 @@ void parseOptions()
// "source" scheduler has a bug: http://llvm.org/bugs/show_bug.cgi?id=22304 // "source" scheduler has a bug: http://llvm.org/bugs/show_bug.cgi?id=22304
auto envLine = std::getenv("EVMJIT"); auto envLine = std::getenv("EVMJIT");
auto commandLine = std::string{"evmjit "} + (envLine ? envLine : "") + " -pre-RA-sched=list-burr\0"; auto commandLine = std::string{"evmjit "} + (envLine ? envLine : "") + " -pre-RA-sched=list-burr\0";
char const* argv[100] = {nullptr, }; static const auto c_maxArgs = 20;
char const* argv[c_maxArgs] = {nullptr, };
auto arg = std::strtok(&*commandLine.begin(), " "); auto arg = std::strtok(&*commandLine.begin(), " ");
auto i = 0; auto i = 0;
for (; i < sizeof(argv) / sizeof(argv[0]) && arg; ++i, arg = std::strtok(nullptr, " ")) for (; i < c_maxArgs && arg; ++i, arg = std::strtok(nullptr, " "))
argv[i] = arg; argv[i] = arg;
cl::ParseCommandLineOptions(i, argv, "Ethereum EVM JIT Compiler"); cl::ParseCommandLineOptions(i, argv, "Ethereum EVM JIT Compiler");
} }

Loading…
Cancel
Save