From cbdf30af797115fed613cec7739c4ae0cd52abb1 Mon Sep 17 00:00:00 2001 From: Anton Korobeynikov Date: Fri, 8 Aug 2008 18:26:10 +0000 Subject: [PATCH] Properly print flags on Sparc git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54543 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/Sparc/SparcTargetAsmInfo.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) 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; } -- 2.34.1