diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-11-17 16:06:37 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-11-17 16:06:37 +0000 |
commit | 6d135972bf4e7fdc4de6b0538d6a3b91a06e3a5d (patch) | |
tree | ae80a644a1034050535b2b87197e2eb0f4e799d4 /tools | |
parent | 6fb881c036c32728c4a128d81b6083457e534e09 (diff) |
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
Diffstat (limited to 'tools')
-rw-r--r-- | tools/lli/lli.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/lli/lli.cpp b/tools/lli/lli.cpp index fa2de76062..507e38d920 100644 --- a/tools/lli/lli.cpp +++ b/tools/lli/lli.cpp @@ -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: |