Skip to content
  1. May 25, 2016
  2. May 24, 2016
  3. May 23, 2016
    • Rui Ueyama's avatar
      Remove dead code. · fa2f307c
      Rui Ueyama authored
      The dead declarations made MSVC to warn on explicit template
      instantiations of the classes.
      
      llvm-svn: 270471
      fa2f307c
    • Rui Ueyama's avatar
      Do not split mergeable sections if they are gc'ed. · b91bf1a9
      Rui Ueyama authored
      Previously, mergeable section's constructors did more than just
      setting member variables; it split section contents into small
      pieces. It is not always computationally cheap task because if
      the section is a mergeable string section, it needs to scan the
      entire section to split them by NUL characters.
      
      If a section would be thrown away by GC, that cost ended up
      being a waste of time. It is going to be larger problem if the
      section is compressed -- the whole time to uncompress it and
      split it up is going to be a waste.
      
      Luckily, we can defer section splitting after GC. We just have
      to remember which offsets are in use during GC and apply that later.
      This patch implements it.
      
      Differential Revision: http://reviews.llvm.org/D20516
      
      llvm-svn: 270455
      b91bf1a9
    • Rui Ueyama's avatar
      Fix typos. · 2ab3d208
      Rui Ueyama authored
      llvm-svn: 270451
      2ab3d208
    • Rui Ueyama's avatar
      Remove EhFrameHeader<ELFT>::reserveFde. NFC. · de9777af
      Rui Ueyama authored
      llvm-svn: 270448
      de9777af
    • Rui Ueyama's avatar
      Remove dead code. · 8a6ef4e6
      Rui Ueyama authored
      Since now we always set SHT_PROGBITS to .eh_frame sections,
      this code path is not executed at runtime.
      
      llvm-svn: 270446
      8a6ef4e6
    • Rui Ueyama's avatar
      Make .eh_frame a singleton output object. · 3b31e671
      Rui Ueyama authored
      .eh_frame_hdr assumes that there is only one .eh_frame and
      ensures it by assertions. This patch makes .eh_frame a real
      singleton object to simplify.
      
      llvm-svn: 270445
      3b31e671
    • Rui Ueyama's avatar
      Do not propagate section name and attributes to .eh_frame. · f86cb90a
      Rui Ueyama authored
      .eh_frame is always ".eh_frame" and its attribute is fixed.
      No need to copy from inputs to outputs. GNU gold also sets
      SHT_PROGBITS.
      
      llvm-svn: 270443
      f86cb90a
    • Rui Ueyama's avatar
      Rename EHOutputSection -> EhOutputSection for consistency. · 1e479c23
      Rui Ueyama authored
      llvm-svn: 270442
      1e479c23
    • Rui Ueyama's avatar
      Refactor EhFrameHdr. · e75e933e
      Rui Ueyama authored
      Previously, EhFrameHdr section computed addresses to which FDEs are
      applied to. This is not an ideal design because EhFrameHdr does not
      know much about FDEs unless EhFrame passes the information to EhFrameHdr.
      It is what we did.
      
      This patch simplifies the code by making EhFrame to compute the
      values and pass the cooked information to EhFrameHdr. EhFrameHdr no
      longer have to know about the details of FDEs such as FDE encodings.
      
      llvm-svn: 270393
      e75e933e
Loading