Create debugging information entry for a pointer.

Synopsis

Declared in <llvm/IR/DIBuilder.h>

DIDerivedType*
createPointerType(
    DIType* PointeeTy,
    uint64_t SizeInBits,
    uint32_t AlignInBits = 0,
    std::optional<unsigned int> DWARFAddressSpace = std::nullopt,
    StringRef Name = "",
    DINodeArray Annotations = nullptr);

Return Value

The pointer‐type descriptor.

Parameters

Name

Description

PointeeTy

Type pointed by this pointer.

SizeInBits

Size.

AlignInBits

Alignment. (optional)

DWARFAddressSpace

DWARF address space. (optional)

Name

Pointer type name. (optional)

Annotations

Member annotations.

Created with MrDocs