[NFC][llvm-libtool-darwin] Encapsulate the process of adding a new member in a class
authorRoger Kim <rgr@fb.com>
Tue, 11 Jan 2022 22:37:33 +0000 (14:37 -0800)
committerShoaib Meenai <smeenai@fb.com>
Tue, 11 Jan 2022 22:46:50 +0000 (14:46 -0800)
commite9b5b815565b848d07fb7bfa302394af197f7f51
treecff5be70c2b1c3e453301f47cb8f29adcc105c3e
parent7ea175d1c6fae90fa9f5cc9b569b14cf74698983
[NFC][llvm-libtool-darwin] Encapsulate the process of adding a new member in a class

Here we are refactoring the code to encapsulate data into classes. This allows
us to avoid passing the same objects through many functions that don't directly
use them. Now, functions that need to access data can do so from the class
state.

Reviewed By: jhenderson, smeenai

Differential Revision: https://reviews.llvm.org/D113127
llvm/tools/llvm-libtool-darwin/llvm-libtool-darwin.cpp