mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-26 23:24:34 +00:00
Reduce heap trashing due to std::string construction / concatenation via caching of section flags string representations
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54842 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -27,9 +27,9 @@ SparcELFTargetAsmInfo::SparcELFTargetAsmInfo(const TargetMachine &TM):
|
||||
CStringSection=".rodata.str";
|
||||
}
|
||||
|
||||
std::string SparcELFTargetAsmInfo::PrintSectionFlags(unsigned flags) const {
|
||||
std::string SparcELFTargetAsmInfo::printSectionFlags(unsigned flags) const {
|
||||
if (flags & SectionFlags::Mergeable)
|
||||
return ELFTargetAsmInfo::PrintSectionFlags(flags);
|
||||
return ELFTargetAsmInfo::printSectionFlags(flags);
|
||||
|
||||
std::string Flags;
|
||||
if (!(flags & SectionFlags::Debug))
|
||||
|
Reference in New Issue
Block a user