[LTO] Store target attributes as vector of strings (NFC).
authorFlorian Hahn <flo@fhahn.com>
Sat, 23 Jan 2021 12:09:29 +0000 (12:09 +0000)
committerFlorian Hahn <flo@fhahn.com>
Sat, 23 Jan 2021 12:11:58 +0000 (12:11 +0000)
commit08dbcc14e254396cd5765994cab97274003611bb
tree4530bfa5968b014ab95e2483dcf7b2ce728aa5b7
parent2b9a834c43cb1f93d33958c14b695896bb4e9c1e
[LTO] Store target attributes as vector of strings (NFC).

The target features are obtained as a list of features/attributes.
Instead of storing them in a single string, store the vector. This
matches lto::Config's behavior and simplifies the transition to
lto::backend().

Reviewed By: tejohnson

Differential Revision: https://reviews.llvm.org/D95224
llvm/include/llvm/LTO/legacy/LTOCodeGenerator.h
llvm/lib/LTO/LTOCodeGenerator.cpp
llvm/tools/llvm-lto/llvm-lto.cpp
llvm/tools/lto/lto.cpp