[lld-macho] Have path-related functions return std::string, not StringRef
authorJez Ng <jezng@fb.com>
Fri, 18 Jun 2021 06:32:31 +0000 (02:32 -0400)
committerJez Ng <jezng@fb.com>
Fri, 18 Jun 2021 20:36:14 +0000 (16:36 -0400)
commit1d31fb8d122b1117cf20a9edc09812db8472e930
tree47aa1840eb3783ae244b4da812d5526776837f83
parent4c49f9ceafd6bdc261e0ee157a2ea0fa943d6921
[lld-macho] Have path-related functions return std::string, not StringRef

findLibrary() returned a StringRef while findFramework & other helper
functions returned std::strings. Standardize on std::string.

(I initially tried making the helper functions all return StringRefs,
but I realized we shouldn't return input StringRefs since their
lifetimes would not be obvious from the calling code.)
lld/MachO/Driver.cpp
lld/MachO/Driver.h
lld/MachO/DriverUtils.cpp