func print()

in Sources/SIL/BitcodePrinter.swift [82:107]


    func print(_ block: BitcodeBlock) {
        // ID 0 is normally reserved for the info block, but we don't parse it
        // as a block anyway, and we use the 0 ID for the main outer block instead
        if block.info.id != 0 {
            print("<")
            printBlockName(block)
            print(" NumWords=")
            print(block.blockLen32)
            print(" BlockCodeSize=")
            print(block.abbrLen)
            print(">\n")
            indent()
        }
        for record in block.records {
            print(record, in: block)
        }
        for subblock in block.subblocks {
            print(subblock)
        }
        if block.info.id != 0 {
            unindent()
            print("</")
            printBlockName(block)
            print(">\n")
        }
    }