diff options
author | Seiya Nuta <nuta@seiya.me> | 2019-07-05 05:28:38 +0000 |
---|---|---|
committer | Seiya Nuta <nuta@seiya.me> | 2019-07-05 05:28:38 +0000 |
commit | ecb60b7e5ce7bdfb4edb0963aa657db9d4ccb784 (patch) | |
tree | e1b8a6a9769d423fc618b963c6028139d4f8fa76 /llvm/lib/Analysis/ModuleSummaryAnalysis.cpp | |
parent | 3c47d38f61a7196edd607b323868773aa9eb4fe6 (diff) | |
download | llvm-ecb60b7e5ce7bdfb4edb0963aa657db9d4ccb784.zip llvm-ecb60b7e5ce7bdfb4edb0963aa657db9d4ccb784.tar.gz llvm-ecb60b7e5ce7bdfb4edb0963aa657db9d4ccb784.tar.bz2 |
[llvm-objcopy][NFC] Refactor output target parsing v2
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.
This patch originally has been submitted as D63239. However, there was an use-of-uninitialized-value bug and reverted in r364379 (git commit 4ee933c).
This patch includes the fix for the bug by setting Config.InputFormat/Config.OutputFormat in parseStripOptions.
Reviewers: espindola, alexshap, rupprecht, jhenderson
Reviewed By: jhenderson
Subscribers: emaste, arichardson, jakehehrlich, MaskRay, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D64170
llvm-svn: 365173
Diffstat (limited to 'llvm/lib/Analysis/ModuleSummaryAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions