Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-10 08:42:41

0001 //===- Args.h ---------------------------------------------------*- C++ -*-===//
0002 //
0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0004 // See https://llvm.org/LICENSE.txt for license information.
0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0006 //
0007 //===----------------------------------------------------------------------===//
0008 
0009 #ifndef LLD_ARGS_H
0010 #define LLD_ARGS_H
0011 
0012 #include "lld/Common/LLVM.h"
0013 #include "llvm/Support/CodeGen.h"
0014 #include "llvm/Support/MemoryBuffer.h"
0015 #include <vector>
0016 
0017 namespace llvm {
0018 namespace opt {
0019 class InputArgList;
0020 }
0021 } // namespace llvm
0022 
0023 namespace lld {
0024 namespace args {
0025 
0026 int getCGOptLevel(int optLevelLTO);
0027 
0028 int64_t getInteger(llvm::opt::InputArgList &args, unsigned key,
0029                    int64_t Default);
0030 
0031 int64_t getHex(llvm::opt::InputArgList &args, unsigned key, int64_t Default);
0032 
0033 llvm::SmallVector<StringRef, 0> getStrings(llvm::opt::InputArgList &args,
0034                                            int id);
0035 
0036 uint64_t getZOptionValue(llvm::opt::InputArgList &args, int id, StringRef key,
0037                          uint64_t Default);
0038 
0039 std::vector<StringRef> getLines(MemoryBufferRef mb);
0040 
0041 StringRef getFilenameWithoutExe(StringRef path);
0042 
0043 } // namespace args
0044 } // namespace lld
0045 
0046 #endif