aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/gold
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2022-12-03 18:38:12 +0000
committerFangrui Song <i@maskray.me>2022-12-03 18:38:12 +0000
commitbac974278c5e5a3d6dea40d2d22cb36bcc487cee (patch)
tree57f874fd685c64b48a2a4171ae97dfbd72998a00 /llvm/tools/gold
parentd7a1351bb8d74af7fb5ed4b9df3125b193f2984b (diff)
downloadllvm-bac974278c5e5a3d6dea40d2d22cb36bcc487cee.zip
llvm-bac974278c5e5a3d6dea40d2d22cb36bcc487cee.tar.gz
llvm-bac974278c5e5a3d6dea40d2d22cb36bcc487cee.tar.bz2
CodeGen/CommandFlags: Convert Optional to std::optional
Diffstat (limited to 'llvm/tools/gold')
-rw-r--r--llvm/tools/gold/gold-plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/gold/gold-plugin.cpp b/llvm/tools/gold/gold-plugin.cpp
index c103fc4..0b26d5d 100644
--- a/llvm/tools/gold/gold-plugin.cpp
+++ b/llvm/tools/gold/gold-plugin.cpp
@@ -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 Optional<Reloc::Model> RelocationModel = None;
+static std::optional<Reloc::Model> RelocationModel = None;
static std::string output_name = "";
static std::list<claimed_file> Modules;
static DenseMap<int, void *> FDToLeaderHandle;