[PATCH] D21784: Refactor ELF type inference functions.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 27 22:47:59 PDT 2016


ruiu created this revision.
ruiu added a reviewer: davide.
ruiu added a subscriber: llvm-commits.

Previously, we initialized Config->EKind and Config->EMachine when
we instantiate ELF objects. That was not an ideal location to do that
because the logic was buried too deep inside a concrete logic.

This patch moves the code to the driver so that the initialization
becomes explicit.

http://reviews.llvm.org/D21784

Files:
  ELF/Driver.cpp
  ELF/InputFiles.cpp
  ELF/InputFiles.h
  ELF/SymbolTable.cpp
  ELF/Writer.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21784.62058.patch
Type: text/x-patch
Size: 6163 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160628/2f40c34f/attachment.bin>


More information about the llvm-commits mailing list