mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-14 09:25:25 +00:00
Properly print flags on Sparc
llvm-svn: 54543
This commit is contained in:
parent
14142919d0
commit
62d8837ed2
@ -28,19 +28,18 @@ SparcELFTargetAsmInfo::SparcELFTargetAsmInfo(const TargetMachine &TM):
|
|||||||
}
|
}
|
||||||
|
|
||||||
std::string SparcELFTargetAsmInfo::PrintSectionFlags(unsigned flags) const {
|
std::string SparcELFTargetAsmInfo::PrintSectionFlags(unsigned flags) const {
|
||||||
std::string Flags = ",";
|
|
||||||
|
|
||||||
if (flags & SectionFlags::Mergeable)
|
if (flags & SectionFlags::Mergeable)
|
||||||
return ELFTargetAsmInfo::PrintSectionFlags(flags);
|
return ELFTargetAsmInfo::PrintSectionFlags(flags);
|
||||||
|
|
||||||
|
std::string Flags;
|
||||||
if (!(flags & SectionFlags::Debug))
|
if (!(flags & SectionFlags::Debug))
|
||||||
Flags += "#alloc";
|
Flags += ",#alloc";
|
||||||
if (flags & SectionFlags::Code)
|
if (flags & SectionFlags::Code)
|
||||||
Flags += "#execinstr";
|
Flags += ",#execinstr";
|
||||||
if (flags & SectionFlags::Writeable)
|
if (flags & SectionFlags::Writeable)
|
||||||
Flags += "#write";
|
Flags += ",#write";
|
||||||
if (flags & SectionFlags::TLS)
|
if (flags & SectionFlags::TLS)
|
||||||
Flags += "#tls";
|
Flags += ",#tls";
|
||||||
|
|
||||||
return Flags;
|
return Flags;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user