LLVM 19.0.0git
DebugSymbolRVASubsection.cpp
Go to the documentation of this file.
1//===- DebugSymbolRVASubsection.cpp ---------------------------------------===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
10#include "llvm/ADT/ArrayRef.h"
14#include <cstdint>
15
16using namespace llvm;
17using namespace llvm::codeview;
18
21
23 return Reader.readArray(RVAs, Reader.bytesRemaining() / sizeof(uint32_t));
24}
25
28
30 return Writer.writeArray(ArrayRef(RVAs));
31}
32
34 return RVAs.size() * sizeof(uint32_t);
35}
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
Definition: ArrayRef.h:41
Provides read only access to a subclass of BinaryStream.
uint64_t bytesRemaining() const
Error readArray(ArrayRef< T > &Array, uint32_t NumElements)
Get a reference to a NumElements element array of objects of type T from the underlying stream as if ...
Provides write only access to a subclass of WritableBinaryStream.
Error writeArray(ArrayRef< T > Array)
Writes an array of objects of type T to the underlying stream, as if by using memcpy.
Lightweight error class with error context and mandatory checking.
Definition: Error.h:160
Error commit(BinaryStreamWriter &Writer) const override
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18