[PATCH] D27098: [ELF] Refactor EhOutputSection

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 24 08:57:43 PST 2016


ruiu accepted this revision.
ruiu added a comment.
This revision is now accepted and ready to land.

LGTM



================
Comment at: ELF/OutputSections.cpp:277
                                          ArrayRef<RelTy> Rels) {
+  EhInputSection<ELFT> *Sec = cast<EhInputSection<ELFT>>(Piece.ID);
   const endianness E = ELFT::TargetEndianness;
----------------
Use `auto`.


================
Comment at: ELF/OutputSections.cpp:304
                                       ArrayRef<RelTy> Rels) {
+  EhInputSection<ELFT> *Sec = cast<EhInputSection<ELFT>>(Piece.ID);
   unsigned FirstRelI = Piece.FirstRelocation;
----------------
ditto


Repository:
  rL LLVM

https://reviews.llvm.org/D27098





More information about the llvm-commits mailing list