Args.h revision 327952
1//===- 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);
32} // namespace args
33} // namespace lld
34
35#endif
36