raw_hashtable_metadata_group.cpp 567 B

1234567891011121314151617181920
  1. // Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. // Exceptions. See /LICENSE for license information.
  3. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. #include "common/raw_hashtable_metadata_group.h"
  5. #include "llvm/ADT/StringExtras.h"
  6. namespace Carbon::RawHashtable {
  7. auto MetadataGroup::Print(llvm::raw_ostream& out) const -> void {
  8. out << "[";
  9. llvm::ListSeparator sep;
  10. for (uint8_t byte : metadata_bytes) {
  11. out << sep << llvm::formatv("{0:x2}", byte);
  12. }
  13. out << "]";
  14. }
  15. } // namespace Carbon::RawHashtable