]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/tools/lld/include/lld/Common/Args.h
Merge lld trunk r321017 to contrib/llvm/tools/lld.
[FreeBSD/FreeBSD.git] / contrib / llvm / tools / lld / include / lld / Common / Args.h
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
17 namespace llvm {
18 namespace opt {
19 class InputArgList;
20 }
21 } // namespace llvm
22
23 namespace lld {
24 namespace args {
25 int getInteger(llvm::opt::InputArgList &Args, unsigned Key, int Default);
26 std::vector<StringRef> getStrings(llvm::opt::InputArgList &Args, int Id);
27
28 uint64_t getZOptionValue(llvm::opt::InputArgList &Args, int Id, StringRef Key,
29                          uint64_t Default);
30
31 std::vector<StringRef> getLines(MemoryBufferRef MB);
32 } // namespace args
33 } // namespace lld
34
35 #endif