llvm/llvm/lib/DebugInfo/CodeView/RecordSerialization.cpp

//===-- RecordSerialization.cpp -------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
//
// Utilities for serializing and deserializing CodeView records.
//
//===----------------------------------------------------------------------===//

#include "llvm/DebugInfo/CodeView/RecordSerialization.h"
#include "llvm/ADT/APInt.h"
#include "llvm/ADT/APSInt.h"
#include "llvm/DebugInfo/CodeView/CVRecord.h"
#include "llvm/DebugInfo/CodeView/CodeViewError.h"
#include "llvm/DebugInfo/CodeView/SymbolRecord.h"
#include "llvm/Support/BinaryByteStream.h"

usingnamespacellvm;
usingnamespacellvm::codeview;
usingnamespacellvm::support;

/// Reinterpret a byte array as an array of characters. Does not interpret as
/// a C string, as StringRef has several helpers (split) that make that easy.
StringRef llvm::codeview::getBytesAsCharacters(ArrayRef<uint8_t> LeafData) {}

StringRef llvm::codeview::getBytesAsCString(ArrayRef<uint8_t> LeafData) {}

Error llvm::codeview::consume(BinaryStreamReader &Reader, APSInt &Num) {}

Error llvm::codeview::consume(StringRef &Data, APSInt &Num) {}

/// Decode a numeric leaf value that is known to be a uint64_t.
Error llvm::codeview::consume_numeric(BinaryStreamReader &Reader,
                                      uint64_t &Num) {}

Error llvm::codeview::consume(BinaryStreamReader &Reader, uint32_t &Item) {}

Error llvm::codeview::consume(StringRef &Data, uint32_t &Item) {}

Error llvm::codeview::consume(BinaryStreamReader &Reader, int32_t &Item) {}

Error llvm::codeview::consume(BinaryStreamReader &Reader, StringRef &Item) {}

Expected<CVSymbol> llvm::codeview::readSymbolFromStream(BinaryStreamRef Stream,
                                                        uint32_t Offset) {}