LLVM: lib/Object/SFrameParser.cpp File Reference (original) (raw)
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 | |
| 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) |
◆ getDataSlice()
◆ getDataSliceAs()
◆ getDataSliceAsArrayOf()
◆ getOffset()
| std::optional< int32_t > getOffset ( ArrayRef< int32_t > Offsets, size_t Idx ) | static |
|---|
◆ readArray()
template
◆ readFRE()
Definition at line 131 of file SFrameParser.cpp.
References llvm::object::createError(), llvm::Data, llvm::formatv(), getDataSliceAs(), llvm::sframe::FREInfo< E >::getOffsetCount(), llvm::sframe::FREInfo< E >::getOffsetSize(), llvm::object::SFrameParser< E >::FrameRowEntry::Info, llvm::sframe::FREInfo< E >::Info, llvm::Offset, llvm::object::SFrameParser< E >::FrameRowEntry::Offsets, readArray(), llvm::object::SFrameParser< E >::FrameRowEntry::StartAddress, and llvm::Expected< T >::takeError().
Referenced by llvm::object::SFrameParser< E >::FallibleFREIterator::inc().