[gold] Fix build
authorFangrui Song <i@maskray.me>
Sat, 10 Dec 2022 19:49:44 +0000 (19:49 +0000)
committerFangrui Song <i@maskray.me>
Sat, 10 Dec 2022 19:49:44 +0000 (19:49 +0000)
llvm/tools/gold/gold-plugin.cpp

index a4fda26e5dc37270d95f42e6bf9c5163525238e3..660f51c40d6b9d09c58f11edeeb783e38dff4ee2 100644 (file)
@@ -121,7 +121,7 @@ static ld_plugin_set_extra_library_path set_extra_library_path = nullptr;
 static ld_plugin_get_view get_view = nullptr;
 static bool IsExecutable = false;
 static bool SplitSections = true;
-static std::optional<Reloc::Model> RelocationModel = None;
+static std::optional<Reloc::Model> RelocationModel;
 static std::string output_name = "";
 static std::list<claimed_file> Modules;
 static DenseMap<int, void *> FDToLeaderHandle;