| commit | 5e64d3fb9480a48a70d28fb43244d4659354a844 | [log] [tgz] |
|---|---|---|
| author | Rui Ueyama <ruiu@google.com> | Wed Jun 29 01:30:50 2016 +0000 |
| committer | Rui Ueyama <ruiu@google.com> | Wed Jun 29 01:30:50 2016 +0000 |
| tree | 8fa9e0ecf07ab8308a7338d189fd5433ee16ee76 | |
| parent | 80a4702d022f5294de015767c50a8416eb9ebb7b [diff] |
Refactor ELF type inference functions. 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. Differential Revision: http://reviews.llvm.org/D21784 llvm-svn: 274089