aboutsummaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@digia.com>2012-12-04 12:00:23 +0100
committerLars Knoll <lars.knoll@digia.com>2012-12-04 18:56:56 +0100
commit955f5f03afd9915b7f43ff07ce4b624a86c58a1a (patch)
tree90eeb1d31ec3b976c38ec615a4dd28bed188f441 /main.cpp
parent070e0d07d821342bfbe7a409a51c4c53185c62c7 (diff)
Allow only the ExecutionEngine's StringPool to create Strings.
Strings are the only non-Object Values living on the heap. So by tracking creation, we can help the future GC a lot. Change-Id: I5d5044f9ff10da42aeb75dd4a556d6ab3d839b1a Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.cpp b/main.cpp
index 9090cd2a9f..a516953008 100644
--- a/main.cpp
+++ b/main.cpp
@@ -186,7 +186,7 @@ int compile(const QString &fileName, const QString &source, QQmlJS::LLVMOutputTy
Codegen cg(0);
// FIXME: if the program is empty, we should we generate an empty %entry, or give an error?
- /*IR::Function *globalCode =*/ cg(program, &module);
+ /*IR::Function *globalCode =*/ cg(fileName, program, &module);
int (*exec)(void *) = outputType == LLVMOutputJit ? executeLLVMCode : 0;
return compileWithLLVM(&module, fileName, outputType, exec);