mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-20 02:58:10 +00:00
Properly print flags on Sparc
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54543 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
16b7f5101b
commit
cbdf30af79
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user