summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@me.com>2013-03-07 17:00:17 +0100
committerLars Knoll <lars.knoll@digia.com>2013-03-07 22:38:53 +0100
commit99e0b7a74fa07b5996e4f83e2199805cb729fbcb (patch)
treeeaa87bfbdd7e7405b82c1ecec34c0e84e940d63a /tools
parentb1bfe1ccaa66e7068e940e432a322ceba60f9b64 (diff)
"Fix" llvm build.
In a way that it the compiler doesn't complain anymore. Change-Id: I877b1a051b2ffcbd63a04cf219733b2b21cb9128 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/v4/main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/v4/main.cpp b/tools/v4/main.cpp
index d152f211..55e10716 100644
--- a/tools/v4/main.cpp
+++ b/tools/v4/main.cpp
@@ -152,6 +152,7 @@ int executeLLVMCode(void *codePtr)
VM::ExecutionEngine vm(iSelFactory.data());
VM::ExecutionContext *ctx = vm.rootContext;
+#if THIS_NEEDS_TO_BE_FIXED
QQmlJS::VM::Object *globalObject = vm.globalObject.objectValue();
globalObject->__put__(ctx, vm.newIdentifier(QStringLiteral("print")),
QQmlJS::VM::Value::fromObject(new (ctx->engine->memoryManager) builtins::Print(ctx)));
@@ -163,6 +164,10 @@ int executeLLVMCode(void *codePtr)
}
code(ctx);
+#else
+ Q_UNUSED(ctx);
+ Q_UNUSED(code);
+#endif
return EXIT_SUCCESS;
}