aboutsummaryrefslogtreecommitdiff
path: root/lld/MachO/Driver.h
diff options
context:
space:
mode:
Diffstat (limited to 'lld/MachO/Driver.h')
-rw-r--r--lld/MachO/Driver.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/lld/MachO/Driver.h b/lld/MachO/Driver.h
index 4a970ac8a084..c2933344e611 100644
--- a/lld/MachO/Driver.h
+++ b/lld/MachO/Driver.h
@@ -13,19 +13,13 @@
#include "llvm/ADT/Optional.h"
#include "llvm/ADT/SetVector.h"
#include "llvm/ADT/StringRef.h"
+#include "llvm/BinaryFormat/MachO.h"
#include "llvm/Option/OptTable.h"
#include "llvm/Support/MemoryBuffer.h"
#include <set>
#include <type_traits>
-namespace llvm {
-namespace MachO {
-class InterfaceFile;
-enum class PlatformKind : unsigned;
-} // namespace MachO
-} // namespace llvm
-
namespace lld {
namespace macho {
@@ -74,7 +68,7 @@ uint32_t getModTime(llvm::StringRef path);
void printArchiveMemberLoad(StringRef reason, const InputFile *);
// Map simulator platforms to their underlying device platform.
-llvm::MachO::PlatformKind removeSimulator(llvm::MachO::PlatformKind platform);
+llvm::MachO::PlatformType removeSimulator(llvm::MachO::PlatformType platform);
// Helper class to export dependency info.
class DependencyTracker {
@@ -115,7 +109,7 @@ private:
std::set<std::string> notFounds;
};
-extern DependencyTracker *depTracker;
+extern std::unique_ptr<DependencyTracker> depTracker;
} // namespace macho
} // namespace lld