diff --git a/include/llvm/Target/TargetAsmInfo.h b/include/llvm/Target/TargetAsmInfo.h index 0e44666e5c1..b73cdb9c45e 100644 --- a/include/llvm/Target/TargetAsmInfo.h +++ b/include/llvm/Target/TargetAsmInfo.h @@ -105,12 +105,14 @@ namespace llvm { class Section { friend class TargetAsmInfo; friend class StringMapEntry
; + friend class StringMap
; std::string Name; unsigned Flags; - explicit Section(unsigned F = SectionFlags::Invalid):Flags(F) { } + public: + bool isNamed() const { return Flags & SectionFlags::Named; } unsigned getEntitySize() const { return (Flags >> 24) & 0xFF; }