llvm::sampleprof::SampleProfileReaderBinary::readSampleContextFromTable

Read a context indirectly via the CSNameTable if the profile has context, otherwise same as readStringFromTable, also return its hash value.

Synopsis

Declared in <llvm/ProfileData/SampleProfReader.h>

ErrorOr<std::pair<SampleContext, uint64_t>>
readSampleContextFromTable();

Return Value

The sample context and its hash, or an error on failure.