Andrew Scull | 5e1ddfa | 2018-08-14 10:06:54 +0100 | [diff] [blame] | 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); |
Andrew Scull | 0372a57 | 2018-11-16 15:47:06 +0000 | [diff] [blame^] | 32 | |
| 33 | StringRef getFilenameWithoutExe(StringRef Path); |
| 34 | |
Andrew Scull | 5e1ddfa | 2018-08-14 10:06:54 +0100 | [diff] [blame] | 35 | } // namespace args |
| 36 | } // namespace lld |
| 37 | |
| 38 | #endif |