From: Anton Korobeynikov Date: Fri, 8 Aug 2008 18:26:10 +0000 (+0000) Subject: Properly print flags on Sparc X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=cbdf30af797115fed613cec7739c4ae0cd52abb1;p=oota-llvm.git Properly print flags on Sparc git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54543 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/Sparc/SparcTargetAsmInfo.cpp b/lib/Target/Sparc/SparcTargetAsmInfo.cpp index 39c7442474d..c81b9e1f73d 100644 --- a/lib/Target/Sparc/SparcTargetAsmInfo.cpp +++ b/lib/Target/Sparc/SparcTargetAsmInfo.cpp @@ -28,19 +28,18 @@ SparcELFTargetAsmInfo::SparcELFTargetAsmInfo(const TargetMachine &TM): } std::string SparcELFTargetAsmInfo::PrintSectionFlags(unsigned flags) const { - std::string Flags = ","; - if (flags & SectionFlags::Mergeable) return ELFTargetAsmInfo::PrintSectionFlags(flags); + std::string Flags; if (!(flags & SectionFlags::Debug)) - Flags += "#alloc"; + Flags += ",#alloc"; if (flags & SectionFlags::Code) - Flags += "#execinstr"; + Flags += ",#execinstr"; if (flags & SectionFlags::Writeable) - Flags += "#write"; + Flags += ",#write"; if (flags & SectionFlags::TLS) - Flags += "#tls"; + Flags += ",#tls"; return Flags; }