LLVM  3.7.0
Functions
SampleProfReader.cpp File Reference
#include "llvm/ProfileData/SampleProfReader.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/ErrorOr.h"
#include "llvm/Support/LEB128.h"
#include "llvm/Support/LineIterator.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/Regex.h"
Include dependency graph for SampleProfReader.cpp:

Go to the source code of this file.

Functions

static ErrorOr
< std::unique_ptr
< MemoryBuffer > > 
setupMemoryBuffer (std::string Filename)
 Prepare a memory buffer for the contents of Filename. More...
 

Function Documentation

static ErrorOr<std::unique_ptr<MemoryBuffer> > setupMemoryBuffer ( std::string  Filename)
static

Prepare a memory buffer for the contents of Filename.

Returns
an error code indicating the status of the buffer.

Definition at line 360 of file SampleProfReader.cpp.

References llvm::MemoryBuffer::getFileOrSTDIN(), and llvm::too_large.

Referenced by llvm::sampleprof::SampleProfileReader::create().