OSDN Git Service

[llvm-objcopy][NFC] Refactor output target parsing
authorSeiya Nuta <nuta@seiya.me>
Tue, 25 Jun 2019 00:02:04 +0000 (00:02 +0000)
committerSeiya Nuta <nuta@seiya.me>
Tue, 25 Jun 2019 00:02:04 +0000 (00:02 +0000)
commit948b03b608f15d8497faed0d6c891b956b78304c
treeb321c96e35c8755c5bd238417053ce3614bf1ae0
parentea1783464b533b95d720bdc4cc23450f24943ab7
[llvm-objcopy][NFC] Refactor output target parsing

Summary:
Use an enum instead of string to hold the output file format in Config.InputFormat and Config.OutputFormat. It's essential to support other output file formats other than ELF.

Reviewers: espindola, alexshap, rupprecht, jhenderson

Reviewed By: rupprecht, jhenderson

Subscribers: jyknight, compnerd, emaste, arichardson, fedor.sergeev, jakehehrlich, MaskRay, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D63239

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@364254 91177308-0d34-0410-b5e6-96231b3b80d8
tools/llvm-objcopy/CopyConfig.cpp
tools/llvm-objcopy/CopyConfig.h
tools/llvm-objcopy/ELF/ELFObjcopy.cpp
tools/llvm-objcopy/llvm-objcopy.cpp