aboutsummaryrefslogtreecommitdiffstats
path: root/qv4codegen.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2012-11-19 21:32:15 +0100
committerErik Verbruggen <erik.verbruggen@digia.com>2012-11-20 09:41:34 +0100
commitbe507044a9f0eefb247fb9e385808d5d39b5dc38 (patch)
tree14c153db8f01ad0e0d920e7f075de44e1fe12dbb /qv4codegen.cpp
parentcd287e3c5db436cb354fe1682d44c00a1e1ac109 (diff)
Remove the unused handlersBlock in the IR::Function
This block was used for the old exception handling mechanism that is not in use anymore. Change-Id: If5adf89e43a22ab167378827c0e97f9907d8a366 Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
Diffstat (limited to 'qv4codegen.cpp')
-rw-r--r--qv4codegen.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/qv4codegen.cpp b/qv4codegen.cpp
index ac5b660e34..7a367ca9a7 100644
--- a/qv4codegen.cpp
+++ b/qv4codegen.cpp
@@ -1346,7 +1346,6 @@ void Codegen::linearize(IR::Function *function)
assert(exitBlock->terminator()->asRet());
QSet<IR::BasicBlock *> V;
- V.insert(function->handlersBlock);
V.insert(exitBlock);
QVector<IR::BasicBlock *> trace;
@@ -1388,9 +1387,6 @@ void Codegen::linearize(IR::Function *function)
I::trace(function->basicBlocks.first(), &V, &trace);
- function->handlersBlock->index = trace.size();
- trace.append(function->handlersBlock);
-
exitBlock->index = trace.size();
trace.append(exitBlock);
@@ -1511,11 +1507,9 @@ IR::Function *Codegen::defineFunction(const QString &name, AST::Node *ast,
IR::BasicBlock *entryBlock = function->newBasicBlock();
IR::BasicBlock *exitBlock = function->newBasicBlock(IR::Function::DontInsertBlock);
IR::BasicBlock *throwBlock = function->newBasicBlock();
- IR::BasicBlock *handlersBlock = function->newBasicBlock();
function->hasDirectEval = _env->hasDirectEval;
function->hasNestedFunctions = _env->hasNestedFunctions;
function->maxNumberOfArguments = _env->maxNumberOfArguments;
- function->handlersBlock = handlersBlock;
for (int i = 0; i < _env->vars.size(); ++i) {
unsigned t = entryBlock->newTemp();