diff options
author | Erik Verbruggen <erik.verbruggen@digia.com> | 2014-04-25 15:29:22 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-05-21 16:35:12 +0200 |
commit | 666f20523cd7be16d88d3c03252ed2fd6e4be0c4 (patch) | |
tree | c629c25fcea1ba5a622702ac9ef37bd00ed38aad /src/qml/compiler/qv4jsir.cpp | |
parent | f238e6e6447e7400e487e4eca20ffd9a062b7119 (diff) |
V4: replace debug macro by compile time constant.
By having all code "enabled" all the time, it will be checked by the
compiler and visible for refactoring. The compiler will optimize it away
when debugging is turned off.
Also fixes the code where previous refactoring changes were not applied.
Change-Id: I634ac85570125b533adce93ca347c4be3d60aa83
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/compiler/qv4jsir.cpp')
-rw-r--r-- | src/qml/compiler/qv4jsir.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/qml/compiler/qv4jsir.cpp b/src/qml/compiler/qv4jsir.cpp index 5e3b8bc874..501758145a 100644 --- a/src/qml/compiler/qv4jsir.cpp +++ b/src/qml/compiler/qv4jsir.cpp @@ -904,6 +904,11 @@ void IRPrinter::print(Stmt *s) s->accept(this); } +void IRPrinter::print(const Expr &e) +{ + const_cast<Expr *>(&e)->accept(this); +} + void IRPrinter::print(Expr *e) { e->accept(this); |