From ba94dcaedb31045ded4eeeeb65893981e6ad1e5b Mon Sep 17 00:00:00 2001 From: Igor Chevdar Date: Mon, 10 Feb 2020 20:08:20 +0300 Subject: [PATCH] [DataFlowIR] Better debug output --- .../kotlin/backend/konan/optimizations/DataFlowIR.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/optimizations/DataFlowIR.kt b/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/optimizations/DataFlowIR.kt index b0598efa378..22afb1feb93 100644 --- a/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/optimizations/DataFlowIR.kt +++ b/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/optimizations/DataFlowIR.kt @@ -307,7 +307,7 @@ internal object DataFlowIR { is Node.StaticCall -> { val result = StringBuilder() - result.appendln(" STATIC CALL ${node.callee}") + result.appendln(" STATIC CALL ${node.callee}. Return type = ${node.returnType}") node.arguments.forEach { result.append(" ARG #${ids[it.node]!!}") if (it.castToType == null) @@ -320,7 +320,7 @@ internal object DataFlowIR { is Node.VtableCall -> { val result = StringBuilder() - result.appendln(" VIRTUAL CALL ${node.callee}") + result.appendln(" VIRTUAL CALL ${node.callee}. Return type = ${node.returnType}") result.appendln(" RECEIVER: ${node.receiverType}") result.appendln(" VTABLE INDEX: ${node.calleeVtableIndex}") node.arguments.forEach { @@ -335,7 +335,7 @@ internal object DataFlowIR { is Node.ItableCall -> { val result = StringBuilder() - result.appendln(" INTERFACE CALL ${node.callee}") + result.appendln(" INTERFACE CALL ${node.callee}. Return type = ${node.returnType}") result.appendln(" RECEIVER: ${node.receiverType}") result.appendln(" METHOD HASH: ${node.calleeHash}") node.arguments.forEach {