llvm::MCAsmInfo::shouldOmitSectionDirective

Return true if the .section directive should be omitted when emitting SectionName. For example:

Synopsis

Declared in <llvm/MC/MCAsmInfo.h>

virtual
bool
shouldOmitSectionDirective(StringRef SectionName) const;

Description

shouldOmitSectionDirective(".text")

returns false => .section .text,#alloc,#execinstr returns true => .text

Return Value

True if the .section directive should be omitted.

Parameters

NameDescription
SectionNameSection name being considered for emission.