llvm::ELFCompactAttrParser::getAttributeString

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;
» more...

Return the string value stored for tag, if any.

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

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

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

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

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

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

NameDescription
TagAttribute tag number.
tagAttribute tag number.
BuildAttrSubsectionNameVendor/subsection name, or empty for compact format.
buildAttributeSubsectionNameMust be an empty string.