aboutsummaryrefslogtreecommitdiffstats
path: root/llvm_runtime.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2012-11-25 00:26:28 +0100
committerSimon Hausmann <simon.hausmann@digia.com>2012-11-25 10:21:12 +0100
commit15326415d127e17016b60820b85c85016c3682e6 (patch)
tree4bc0df4dee49d6649c164cca56b547598b8969f2 /llvm_runtime.cpp
parent87b31798170233b92f13ba4d39e0278fdf61e10e (diff)
Fix some issues with the delete operator
Properly implement delete operator for identifiers and local variables. Change-Id: I8ac55edc80c31a94d11444c9f5c78caf4b131c95 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'llvm_runtime.cpp')
-rw-r--r--llvm_runtime.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/llvm_runtime.cpp b/llvm_runtime.cpp
index e63ab62d7e..2ecbee6e59 100644
--- a/llvm_runtime.cpp
+++ b/llvm_runtime.cpp
@@ -500,14 +500,9 @@ void __qmljs_llvm_delete_member(ExecutionContext *ctx, Value *result, Value *bas
*result = __qmljs_delete_member(ctx, *base, name);
}
-void __qmljs_llvm_delete_property(ExecutionContext *ctx, Value *result, String *name)
+void __qmljs_llvm_delete_name(ExecutionContext *ctx, Value *result, String *name)
{
- *result = __qmljs_delete_property(ctx, name);
-}
-
-void __qmljs_llvm_delete_value(ExecutionContext *ctx, Value *result, Value *value)
-{
- *result = __qmljs_delete_value(ctx, *value);
+ *result = __qmljs_delete_name(ctx, name);
}
} // extern "C"