1 //===- Args.h ---------------------------------------------------*- C++ -*-===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
12 #include "lld/Common/LLVM.h"
13 #include "llvm/Support/CodeGen.h"
14 #include "llvm/Support/MemoryBuffer.h"
26 llvm::CodeGenOpt::Level getCGOptLevel(int optLevelLTO);
28 int64_t getInteger(llvm::opt::InputArgList &args, unsigned key,
31 std::vector<StringRef> getStrings(llvm::opt::InputArgList &args, int id);
33 uint64_t getZOptionValue(llvm::opt::InputArgList &args, int id, StringRef key,
36 std::vector<StringRef> getLines(MemoryBufferRef mb);
38 StringRef getFilenameWithoutExe(StringRef path);