clang 22.0.0git
LFILinux.h
Go to the documentation of this file.
1//===--- LFILinux.h - LFI ToolChain Implementations -------------*- 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//===----------------------------------------------------------------------===//
8
9#ifndef LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_LFI_LINUX_H
10#define LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_LFI_LINUX_H
11
12#include "Linux.h"
13
14namespace clang {
15namespace driver {
16namespace toolchains {
17
18class LLVM_LIBRARY_VISIBILITY LFILinux : public Linux {
19public:
20 LFILinux(const Driver &D, const llvm::Triple &Triple,
21 const llvm::opt::ArgList &Args)
22 : Linux(D, Triple, Args) {
23 ExtraOpts.push_back("-z");
24 ExtraOpts.push_back("separate-code");
25 }
26
27 CXXStdlibType GetDefaultCXXStdlibType() const override;
28
29 void AddCXXStdlibLibArgs(const llvm::opt::ArgList &Args,
30 llvm::opt::ArgStringList &CmdArgs) const override;
31};
32
33} // end namespace toolchains
34} // end namespace driver
35} // end namespace clang
36
37#endif // LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_LFI_LINUX_H
Driver - Encapsulate logic for constructing compilation processes from a set of gcc-driver-like comma...
Definition Driver.h:99
LFILinux(const Driver &D, const llvm::Triple &Triple, const llvm::opt::ArgList &Args)
Definition LFILinux.h:20
std::vector< std::string > ExtraOpts
Definition Linux.h:69
Linux(const Driver &D, const llvm::Triple &Triple, const llvm::opt::ArgList &Args)
Definition Linux.cpp:212
The JSON file list parser is used to communicate input to InstallAPI.