getAttributeString overloads

Synopses

Declared in <llvm/Support/ELFAttrParserCompact.h>

Look up a string build‐attribute value by tag.

virtual
std::optional<StringRef>
getAttributeString(unsigned int Tag) const;

Return the string value stored for tag, if any.

virtual
std::optional<StringRef>
getAttributeString(unsigned int tag) const override;

Look up a string build‐attribute value by subsection name and tag.

virtual
std::optional<StringRef>
getAttributeString(
    StringRef BuildAttrSubsectionName,
    unsigned int Tag) const;

Return the string value for tag; subsection name must be empty.

virtual
std::optional<StringRef>
getAttributeString(
    StringRef buildAttributeSubsectionName,
    unsigned int tag) const override;

Return Value

  • The string value, or std::nullopt if the tag is absent.

  • The stored string, or std::nullopt if tag was not seen.

Parameters

Name

Description

Tag

Attribute tag number.

tag

Attribute tag number.

BuildAttrSubsectionName

Vendor/subsection name, or empty for compact format.

buildAttributeSubsectionName

Must be an empty string.

Created with MrDocs