summaryrefslogtreecommitdiff
path: root/tools/lli
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-11-17 16:06:37 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-11-17 16:06:37 +0000
commit6d135972bf4e7fdc4de6b0538d6a3b91a06e3a5d (patch)
treeae80a644a1034050535b2b87197e2eb0f4e799d4 /tools/lli
parent6fb881c036c32728c4a128d81b6083457e534e09 (diff)
downloadllvm-6d135972bf4e7fdc4de6b0538d6a3b91a06e3a5d.tar.gz
llvm-6d135972bf4e7fdc4de6b0538d6a3b91a06e3a5d.tar.bz2
llvm-6d135972bf4e7fdc4de6b0538d6a3b91a06e3a5d.tar.xz
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/lli')
-rw-r--r--tools/lli/lli.cpp8
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: