Associate a filename with a specified logical file number. This implements the DWARF2 '.file 4 "foo.c"' assembler directive.

Synopsis

Declared in <llvm/MC/MCStreamer.h>

unsigned int
emitDwarfFileDirective(
    unsigned int FileNo,
    StringRef Directory,
    StringRef Filename,
    std::optional<MD5::MD5Result> Checksum = std::nullopt,
    std::optional<StringRef> Source = std::nullopt,
    unsigned int CUID = 0);

Return Value

The assigned logical file number.

Parameters

Name

Description

FileNo

‐ Logical file number.

Directory

‐ Directory component of the file path.

Filename

‐ File name component of the file path.

Checksum

‐ Optional MD5 checksum of the source file.

Source

‐ Optional embedded source text.

CUID

‐ DWARF compile‐unit id.

Created with MrDocs