Files
swift-mirror/include/swift/Basic/SmallBitVector.h
Nate Chandler 600164257a [NFC] Moved SmallBitVector dumping to Basic.
Moved out of MemoryLocations.h and merged the implementations of <<,
keeping the version from MemoryLocations with its brackets and commas
available via a flag but defaulting the implementation previously in the
header.
2024-02-19 11:41:38 -08:00

35 lines
1.1 KiB
C++

//===--- SmallBitVector.h -------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2022 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
//===----------------------------------------------------------------------===//
#ifndef SWIFT_BASIC_SMALLBITVECTOR_H
#define SWIFT_BASIC_SMALLBITVECTOR_H
#include "llvm/ADT/SmallBitVector.h"
#include "llvm/Support/raw_ostream.h"
namespace swift {
void printBitsAsArray(llvm::raw_ostream &OS, const llvm::SmallBitVector &bits,
bool bracketed);
inline llvm::raw_ostream &operator<<(llvm::raw_ostream &OS,
const llvm::SmallBitVector &bits) {
printBitsAsArray(OS, bits, /*bracketed=*/false);
return OS;
}
void dumpBits(const llvm::SmallBitVector &bits);
} // namespace swift
#endif