[PATCH] D35873: Merge OutputSectionCommand and OutputSection

Rafael Ávila de Espíndola via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 25 19:18:35 PDT 2017


rafael created this revision.
Herald added a subscriber: emaste.

This is a bit of a hack, but it is *so* convenient.

The patch removes over 100 lines of code. It also balances the .cpp files a bit more. Now that we have synthetic linker scripts, LinkerScript.cpp had a bit too much in it IMHO.

This also removes the need to keep a map from OutputSection to OutputSectionCommand.


https://reviews.llvm.org/D35873

Files:
  ELF/LinkerScript.cpp
  ELF/LinkerScript.h
  ELF/MapFile.cpp
  ELF/MapFile.h
  ELF/OutputSections.cpp
  ELF/OutputSections.h
  ELF/Relocations.cpp
  ELF/Relocations.h
  ELF/ScriptParser.cpp
  ELF/SyntheticSections.cpp
  ELF/Writer.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35873.108203.patch
Type: text/x-patch
Size: 87033 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170726/a72fb6a1/attachment-0001.bin>


More information about the llvm-commits mailing list