|
LLVM 23.0.0git
|
#include "llvm/DebugInfo/GSYM/GsymReader.h"#include <assert.h>#include <inttypes.h>#include <stdio.h>#include <stdlib.h>#include "llvm/DebugInfo/GSYM/GsymReaderV1.h"#include "llvm/DebugInfo/GSYM/GsymReaderV2.h"#include "llvm/DebugInfo/GSYM/Header.h"#include "llvm/DebugInfo/GSYM/HeaderV2.h"#include "llvm/DebugInfo/GSYM/InlineInfo.h"#include "llvm/DebugInfo/GSYM/LineTable.h"#include "llvm/Support/MemoryBuffer.h"Go to the source code of this file.
Functions | |
| static Expected< std::pair< uint16_t, llvm::endianness > > | checkMagicAndDetectVersionEndian (StringRef Bytes) |
| Check magic bytes, determine endianness, and return the GSYM version and endianness. | |
|
static |
Check magic bytes, determine endianness, and return the GSYM version and endianness.
If magic bytes are invalid, return error.
Definition at line 36 of file GsymReader.cpp.
References llvm::big, llvm::createStringError(), llvm::Data, llvm::gsym::GSYM_CIGAM, llvm::gsym::GSYM_MAGIC, llvm::little, llvm::native, llvm::Offset, and llvm::StringRef::size().
Referenced by llvm::gsym::GsymReader::create().