diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2011-02-14 22:23:49 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2011-02-14 22:23:49 +0000 |
commit | 5d618ef7f1ad005fc6912f3e9a08c044b082e47f (patch) | |
tree | c70fc8f069793ae42360741c6e8bb92581f5f8f9 /lib/MC | |
parent | 56519aac04d509e1ce7ec82e79fec1a65227d4ec (diff) |
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
Diffstat (limited to 'lib/MC')
-rw-r--r-- | lib/MC/MCSectionELF.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/MC/MCSectionELF.cpp b/lib/MC/MCSectionELF.cpp index 56138cbc30..d32aea144e 100644 --- a/lib/MC/MCSectionELF.cpp +++ b/lib/MC/MCSectionELF.cpp @@ -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'; } |