mirror of
https://github.com/apple/swift.git
synced 2026-09-30 10:17:34 +02:00
NFC. Just peeling off small things from a alrger commit. Replace the standalone dump() method with a print(llvm::raw_ostream &os) method that writes to an arbitrary output stream, and implement dump() via the SWIFT_DEBUG_DUMP macro delegating to print(llvm::dbgs()). Also fix a minor indentation issue in the original dump() body and switch the loop variable to a const reference. This follows the standard Swift/SIL convention for debug-printable types, making BitDataflow consistent with the rest of the codebase and allowing its state to be printed to streams other than stderr.