Skip to content
  1. Oct 11, 2017
  2. Oct 10, 2017
    • Matthew Simpson's avatar
      [SparsePropagation] Use SmallVector for work lists · c253c193
      Matthew Simpson authored
      This patch changes the work lists from std::vector to SmallVector, which
      matches the SCCP implementation. This patch also updates some related comments.
      
      llvm-svn: 315373
      c253c193
    • Jake Ehrlich's avatar
      [llvm-objcopy] Fix latent bug that allowed some Sections to be improperly cast... · 70bd75f8
      Jake Ehrlich authored
      [llvm-objcopy] Fix latent bug that allowed some Sections to be improperly cast to StringTableSections
      
      If a Section had Type SHT_STRTAB (which could happen if you had a
      .dynstr section) it was possible to cast Section to StringTableSection
      and get away with any operation that was supported by SectionBase
      without it being noticed. This change makes this bug easier to notice
      and fixes it where it occurred. It also made me realize that there was
      some duplication of efforts in the loop that calls ::initialize. These
      issues are all fixed by this change.
      
      Differential Revision: https://reviews.llvm.org/D38329
      
      llvm-svn: 315372
      70bd75f8
Loading