consolidate IR line parse function

This commit is contained in:
Irmen de Jong
2022-09-27 17:45:26 +02:00
parent 06cf2e0bd7
commit 1d2ce2cbeb
10 changed files with 202 additions and 392 deletions
@@ -243,7 +243,7 @@ class IRCodeGen(
val data = node.file.readBytes()
.drop(node.offset?.toInt() ?: 0)
.take(node.length?.toInt() ?: Int.MAX_VALUE)
chunk += IRCodeInlineBinary(data.toByteArray())
chunk += IRCodeInlineBinary(data.map { it.toUByte() })
return chunk
}
is PtAddressOf,