blob: 769d4840cf065cad49deebb6d8f8c0093a2d7752 [file] [log] [blame]
Andrew Scull5e1ddfa2018-08-14 10:06:54 +01001//===- Args.h ---------------------------------------------------*- C++ -*-===//
2//
3// The LLVM Linker
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
10#ifndef LLD_ARGS_H
11#define LLD_ARGS_H
12
13#include "lld/Common/LLVM.h"
14#include "llvm/Support/MemoryBuffer.h"
15#include <vector>
16
17namespace llvm {
18namespace opt {
19class InputArgList;
20}
21} // namespace llvm
22
23namespace lld {
24namespace args {
25int getInteger(llvm::opt::InputArgList &Args, unsigned Key, int Default);
26std::vector<StringRef> getStrings(llvm::opt::InputArgList &Args, int Id);
27
28uint64_t getZOptionValue(llvm::opt::InputArgList &Args, int Id, StringRef Key,
29 uint64_t Default);
30
31std::vector<StringRef> getLines(MemoryBufferRef MB);
Andrew Scull0372a572018-11-16 15:47:06 +000032
33StringRef getFilenameWithoutExe(StringRef Path);
34
Andrew Scull5e1ddfa2018-08-14 10:06:54 +010035} // namespace args
36} // namespace lld
37
38#endif