aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmlcompiler
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2020-10-21 13:41:24 +0200
committerUlf Hermann <ulf.hermann@qt.io>2020-10-27 09:23:19 +0100
commit23813a319898e8951645a9f9bec5813090fd3a85 (patch)
tree95fee9b73f3357b06cda03e7212639e0ef086107 /src/qmlcompiler
parent31fb90d20b2df7c7c7763294942fa1cb5d76a732 (diff)
QmlCompiler: Log the name of the binding being compiled
The binding code alone is not very helpful. Change-Id: I74e8884b2345c8b60447375e38a18db65ac22cb4 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qmlcompiler')
-rw-r--r--src/qmlcompiler/qqmljscompiler.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/qmlcompiler/qqmljscompiler.cpp b/src/qmlcompiler/qqmljscompiler.cpp
index 36b7ee046b..d508b290bd 100644
--- a/src/qmlcompiler/qqmljscompiler.cpp
+++ b/src/qmlcompiler/qqmljscompiler.cpp
@@ -228,12 +228,14 @@ bool qCompileQmlFile(const QString &inputFileName, QQmlJSSaveFunction saveFuncti
break;
}
+ qCDebug(lcAotCompiler) << "Compiling binding for property"
+ << irDocument.stringAt(binding.propertyNameIndex);
auto result = aotCompiler->compileBinding(binding);
if (auto *error = std::get_if<QQmlJS::DiagnosticMessage>(&result)) {
- qCDebug(lcAotCompiler()) << "Could not compile binding:"
+ qCDebug(lcAotCompiler) << "Could not compile binding:"
<< diagnosticErrorMessage(inputFileName, *error);
} else if (auto *func = std::get_if<QQmlJSAotFunction>(&result)) {
- qCInfo(lcAotCompiler()) << "Generated code:" << func->code;
+ qCInfo(lcAotCompiler) << "Generated code:" << func->code;
aotFunctionsByIndex[runtimeFunctionIndices[binding.value.compiledScriptIndex]] = *func;
}
});