mirror of
https://github.com/apple/swift.git
synced 2026-03-04 18:24:35 +01: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.