llvm::MCStreamer::emitCVFileDirective

Associate a filename with a specified logical file number, and also specify that file's checksum information. This implements the '.cv_file 4 "foo.c"' assembler directive. Returns true on success.

Synopsis

Declared in <llvm/MC/MCStreamer.h>

virtual
bool
emitCVFileDirective(
    unsigned int FileNo,
    StringRef Filename,
    ArrayRef<uint8_t> Checksum,
    unsigned int ChecksumKind);

Parameters

NameDescription
FilenameRepresent a constant reference to a string, i.e. a character array and a length, which need not be null terminated.
ChecksumRepresent a constant reference to an array (0 or more elements consecutively in memory), i.e. a start pointer and a length. It allows various APIs to take consecutive elements easily and conveniently.