enum ImportNameType [src]

Fields

ORDINAL = 0The import is by ordinal. This indicates that the value in the Ordinal/Hint field of the import header is the import's ordinal. If this constant is not specified, then the Ordinal/Hint field should always be interpreted as the import's hint.
NAME = 1The import name is identical to the public symbol name.
NAME_NOPREFIX = 2The import name is the public symbol name, but skipping the leading ?, @, or optionally _.
NAME_UNDECORATE = 3The import name is the public symbol name, but skipping the leading ?, @, or optionally _, and truncating at the first @.
NAME_EXPORTAS = 4https://github.com/llvm/llvm-project/pull/83211
_

Source

pub const ImportNameType = enum(u3) { /// The import is by ordinal. This indicates that the value in the Ordinal/Hint /// field of the import header is the import's ordinal. If this constant is not /// specified, then the Ordinal/Hint field should always be interpreted as the import's hint. ORDINAL = 0, /// The import name is identical to the public symbol name. NAME = 1, /// The import name is the public symbol name, but skipping the leading ?, @, or optionally _. NAME_NOPREFIX = 2, /// The import name is the public symbol name, but skipping the leading ?, @, or optionally _, /// and truncating at the first @. NAME_UNDECORATE = 3, /// https://github.com/llvm/llvm-project/pull/83211 NAME_EXPORTAS = 4, _, }