mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
lli: Add stub -use-mcjit option, which doesn't currently do anything.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119508 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -55,6 +55,10 @@ namespace {
|
||||
cl::desc("Force interpretation: disable JIT"),
|
||||
cl::init(false));
|
||||
|
||||
cl::opt<bool> UseMCJIT(
|
||||
"use-mcjit", cl::desc("Enable use of the MC-based JIT (if available)"),
|
||||
cl::init(false));
|
||||
|
||||
// Determine optimization level.
|
||||
cl::opt<char>
|
||||
OptLevel("O",
|
||||
@@ -167,6 +171,10 @@ int main(int argc, char **argv, char * const *envp) {
|
||||
if (!TargetTriple.empty())
|
||||
Mod->setTargetTriple(Triple::normalize(TargetTriple));
|
||||
|
||||
// Enable MCJIT, if desired.
|
||||
if (UseMCJIT)
|
||||
builder.setUseMCJIT(true);
|
||||
|
||||
CodeGenOpt::Level OLvl = CodeGenOpt::Default;
|
||||
switch (OptLevel) {
|
||||
default:
|
||||
|
Reference in New Issue
Block a user