LLVM  10.0.0svn
Functions
YAMLRemarkParser.cpp File Reference
#include "YAMLRemarkParser.h"
#include "llvm/ADT/StringSwitch.h"
#include "llvm/Remarks/RemarkParser.h"
#include "llvm/Support/Endian.h"
#include "llvm/Support/Path.h"
Include dependency graph for YAMLRemarkParser.cpp:

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_t > parseVersion (StringRef &Buf)
 
static Expected< uint64_t > parseStrTabSize (StringRef &Buf)
 
static Expected< ParsedStringTableparseStrTab (StringRef &Buf, uint64_t StrTabSize)
 

Function Documentation

◆ handleDiagnostic()

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

Definition at line 25 of file YAMLRemarkParser.cpp.

References assert(), and llvm::SMDiagnostic::print().

Referenced by setupSM().

◆ 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