mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-23 17:28:54 +00:00
Switch llvm to using comdats. For now always use groups with a single
section. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125526 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -61,6 +61,8 @@ void MCSectionELF::PrintSwitchToSection(const MCAsmInfo &MAI,
|
||||
OS << 'a';
|
||||
if (Flags & ELF::SHF_EXECINSTR)
|
||||
OS << 'x';
|
||||
if (Flags & ELF::SHF_GROUP)
|
||||
OS << 'G';
|
||||
if (Flags & ELF::SHF_WRITE)
|
||||
OS << 'w';
|
||||
if (Flags & ELF::SHF_MERGE)
|
||||
@@ -104,6 +106,8 @@ void MCSectionELF::PrintSwitchToSection(const MCAsmInfo &MAI,
|
||||
OS << "," << EntrySize;
|
||||
}
|
||||
|
||||
if (Flags & ELF::SHF_GROUP)
|
||||
OS << "," << Group->getName() << ",comdat";
|
||||
OS << '\n';
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user