comparison lld/MachO/Driver.h @ 223:5f17cb93ff66 llvm-original

LLVM13 (2021/7/18)
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 18 Jul 2021 22:43:00 +0900
parents 79ff65ed7e25
children c4bab56944e8
comparison
equal deleted inserted replaced
222:81f6424ef0e3 223:5f17cb93ff66
20 #include <type_traits> 20 #include <type_traits>
21 21
22 namespace llvm { 22 namespace llvm {
23 namespace MachO { 23 namespace MachO {
24 class InterfaceFile; 24 class InterfaceFile;
25 enum class PlatformKind : unsigned;
25 } // namespace MachO 26 } // namespace MachO
26 } // namespace llvm 27 } // namespace llvm
27 28
28 namespace lld { 29 namespace lld {
29 namespace macho { 30 namespace macho {
73 74
74 uint32_t getModTime(llvm::StringRef path); 75 uint32_t getModTime(llvm::StringRef path);
75 76
76 void printArchiveMemberLoad(StringRef reason, const InputFile *); 77 void printArchiveMemberLoad(StringRef reason, const InputFile *);
77 78
79 // Map simulator platforms to their underlying device platform.
80 llvm::MachO::PlatformKind removeSimulator(llvm::MachO::PlatformKind platform);
81
78 // Helper class to export dependency info. 82 // Helper class to export dependency info.
79 class DependencyTracker { 83 class DependencyTracker {
80 public: 84 public:
81 explicit DependencyTracker(llvm::StringRef path); 85 explicit DependencyTracker(llvm::StringRef path);
82 86
83 // Adds the given path to the set of not-found files. 87 // Adds the given path to the set of not-found files.
84 inline void logFileNotFound(std::string path) {
85 if (active)
86 notFounds.insert(std::move(path));
87 }
88
89 inline void logFileNotFound(const Twine &path) { 88 inline void logFileNotFound(const Twine &path) {
90 if (active) 89 if (active)
91 notFounds.insert(path.str()); 90 notFounds.insert(path.str());
92 } 91 }
93 92