[Flang] remove whole-archive option for AIX linker (#76039)
[llvm-project.git] / clang / lib / Driver / ToolChains / Arch / Sparc.h
blob44658c4259c696992495c2137f8922cf4e9b7deb
1 //===--- Sparc.h - Sparc-specific Tool Helpers ----------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ARCH_SPARC_H
10 #define LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ARCH_SPARC_H
12 #include "clang/Driver/Driver.h"
13 #include "llvm/ADT/StringRef.h"
14 #include "llvm/Option/Option.h"
15 #include <string>
16 #include <vector>
18 namespace clang {
19 namespace driver {
20 namespace tools {
21 namespace sparc {
23 enum class FloatABI {
24 Invalid,
25 Soft,
26 Hard,
29 FloatABI getSparcFloatABI(const Driver &D, const llvm::opt::ArgList &Args);
31 std::string getSparcTargetCPU(const Driver &D, const llvm::opt::ArgList &Args,
32 const llvm::Triple &Triple);
34 void getSparcTargetFeatures(const Driver &D, const llvm::opt::ArgList &Args,
35 std::vector<llvm::StringRef> &Features);
36 const char *getSparcAsmModeForCPU(llvm::StringRef Name,
37 const llvm::Triple &Triple);
39 } // end namespace sparc
40 } // end namespace target
41 } // end namespace driver
42 } // end namespace clang
44 #endif // LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ARCH_SPARC_H