LLVM 19.0.0git
Functions
YAMLRemarkParser.cpp File Reference
#include "YAMLRemarkParser.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/StringSwitch.h"
#include "llvm/Support/Endian.h"
#include "llvm/Support/Path.h"
#include <optional>

Go to the source code of this file.

Functions

static void handleDiagnostic (const SMDiagnostic &Diag, void *Ctx)
 
static SourceMgr setupSM (std::string &LastErrorMessage)
 
static Expected< boolparseMagic (StringRef &Buf)
 
static Expected< uint64_tparseVersion (StringRef &Buf)
 
static Expected< uint64_tparseStrTabSize (StringRef &Buf)
 
static Expected< ParsedStringTableparseStrTab (StringRef &Buf, uint64_t StrTabSize)
 

Function Documentation

◆ handleDiagnostic()

static void handleDiagnostic ( const SMDiagnostic Diag,
void *  Ctx 
)
static

◆ parseMagic()

static Expected< bool > parseMagic ( StringRef Buf)
static

◆ parseStrTab()

static Expected< ParsedStringTable > parseStrTab ( StringRef Buf,
uint64_t  StrTabSize 
)
static

◆ parseStrTabSize()

static Expected< uint64_t > parseStrTabSize ( StringRef Buf)
static

◆ parseVersion()

static Expected< uint64_t > parseVersion ( StringRef Buf)
static

◆ setupSM()

static SourceMgr setupSM ( std::string &  LastErrorMessage)
static

Definition at line 54 of file YAMLRemarkParser.cpp.

References handleDiagnostic(), and llvm::SourceMgr::setDiagHandler().