aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2008-08-08 18:26:10 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2008-08-08 18:26:10 +0000
commitcbdf30af797115fed613cec7739c4ae0cd52abb1 (patch)
treef0fa23ecd3e672f68af3c51c65747fa3607ba548 /lib/Target
parent16b7f5101b9191dcb36c0e545084ff52a41bc78e (diff)
downloadexternal_llvm-cbdf30af797115fed613cec7739c4ae0cd52abb1.zip
external_llvm-cbdf30af797115fed613cec7739c4ae0cd52abb1.tar.gz
external_llvm-cbdf30af797115fed613cec7739c4ae0cd52abb1.tar.bz2
Properly print flags on Sparc
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54543 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r--lib/Target/Sparc/SparcTargetAsmInfo.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/Target/Sparc/SparcTargetAsmInfo.cpp b/lib/Target/Sparc/SparcTargetAsmInfo.cpp
index 39c7442..c81b9e1 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;
}