Get or create a DIFile with the given operands.
Declared in <llvm/IR/DebugInfoMetadata.h>
static
DIFile*
get(
LLVMContext& Context,
MDString* Filename,
MDString* Directory,
std::optional<ChecksumInfo<MDString*>> CS = std::nullopt,
MDString* Source = nullptr);
Also provides getIfExists, getDistinct, and getTemporary variants.
The metadata node (uniqued, distinct, or temporary as requested); getIfExists may return nullptr.
| Name | Description |
|---|---|
| Context | LLVM context that owns the metadata. |
| Filename | Source filename. |
| Directory | Source directory. |
| CS | Optional file checksum. |
| Source | Optional embedded source text. |