LLVM 22.0.0git
|
#include "llvm/Object/SFrameParser.h"
#include "llvm/BinaryFormat/SFrame.h"
#include "llvm/Object/Error.h"
#include "llvm/Support/FormatVariadic.h"
#include "llvm/Support/MathExtras.h"
Go to the source code of this file.
Functions | |
static Expected< ArrayRef< uint8_t > > | getDataSlice (ArrayRef< uint8_t > Data, uint64_t Offset, uint64_t Size) |
template<typename T > | |
static Expected< ArrayRef< T > > | getDataSliceAsArrayOf (ArrayRef< uint8_t > Data, uint64_t Offset, uint64_t Count) |
template<typename T > | |
static Expected< const T & > | getDataSliceAs (ArrayRef< uint8_t > Data, uint64_t Offset) |
template<typename EndianT > | |
static Error | readArray (ArrayRef< uint8_t > Data, uint64_t Count, uint64_t &Offset, SmallVectorImpl< int32_t > &Vec) |
template<typename T , endianness E> | |
static Error | readFRE (ArrayRef< uint8_t > Data, uint64_t &Offset, typename SFrameParser< E >::FrameRowEntry &FRE) |
static std::optional< int32_t > | getOffset (ArrayRef< int32_t > Offsets, size_t Idx) |
|
static |
Definition at line 19 of file SFrameParser.cpp.
References llvm::createStringError(), End, llvm::formatv(), llvm::Offset, llvm::SaturatingAdd(), and Size.
Referenced by llvm::object::SFrameParser< E >::fdes(), llvm::object::SFrameParser< E >::getAuxHeader(), and getDataSliceAsArrayOf().
|
static |
Definition at line 47 of file SFrameParser.cpp.
References llvm::Offset.
|
static |
Definition at line 36 of file SFrameParser.cpp.
References getDataSlice(), and llvm::Offset.
|
static |
Definition at line 187 of file SFrameParser.cpp.
References Idx.
Referenced by llvm::logicalview::LVLine::getAddress().
|
static |
Definition at line 118 of file SFrameParser.cpp.
References llvm::SmallVectorTemplateCommon< T, typename >::begin(), llvm::copy(), llvm::Offset, llvm::SmallVectorImpl< T >::resize(), llvm::Error::success(), and llvm::Expected< T >::takeError().
|
static |
Definition at line 131 of file SFrameParser.cpp.
References llvm::object::createError(), llvm::formatv(), llvm::Offset, and llvm::Expected< T >::takeError().