llvm::ELFAttrs::attrTypeAsString

Return the display name for attr from tagNameMap.

Synopsis

Declared in <llvm/Support/ELFAttributes.h>

StringRef
attrTypeAsString(
    unsigned int attr,
    TagNameMap tagNameMap,
    bool hasTagPrefix = true);

Return Value

The display name for attr, or an empty string if not found.

Parameters

NameDescription
attrAttribute tag number to look up.
tagNameMapMap from tag numbers to display names.
hasTagPrefixIf true, return the full name (for example "Tag_CPU_name"); if false, drop the leading "Tag_" prefix.