#include <algorithm>
#include <future>
#include <memory>
+#include <optional>
using namespace llvm;
using namespace llvm::object;
AutoExporter exporter(excludedSymbols);
for (auto *arg : args.filtered(OPT_wholearchive_file))
- if (Optional<StringRef> path = doFindFile(arg->getValue()))
+ if (std::optional<StringRef> path = doFindFile(arg->getValue()))
exporter.addWholeArchive(*path);
for (auto *arg : args.filtered(OPT_exclude_symbols)) {
// Handle /opt.
bool doGC = debug == DebugKind::None || args.hasArg(OPT_profile);
- Optional<ICFLevel> icfLevel;
+ std::optional<ICFLevel> icfLevel;
if (args.hasArg(OPT_profile))
icfLevel = ICFLevel::None;
unsigned tailMerge = 1;
std::set<sys::fs::UniqueID> wholeArchives;
for (auto *arg : args.filtered(OPT_wholearchive_file))
- if (Optional<StringRef> path = doFindFile(arg->getValue()))
+ if (std::optional<StringRef> path = doFindFile(arg->getValue()))
if (Optional<sys::fs::UniqueID> id = getUniqueID(*path))
wholeArchives.insert(*id);