//===-- TargetOptionsCommandFlags.cpp ---------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #include "lld/Common/TargetOptionsCommandFlags.h" #include "llvm/CodeGen/CommandFlags.h" #include "llvm/Target/TargetOptions.h" #include "llvm/TargetParser/Triple.h" #include <optional> llvm::TargetOptions lld::initTargetOptionsFromCodeGenFlags() { … } std::optional<llvm::Reloc::Model> lld::getRelocModelFromCMModel() { … } std::optional<llvm::CodeModel::Model> lld::getCodeModelFromCMModel() { … } std::string lld::getCPUStr() { … } std::vector<std::string> lld::getMAttrs() { … }