| 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 |
|
| 14 |
namespace clang { |
| 15 |
namespace driver { |
| 16 |
namespace toolchains { |
| 17 |
|
| 18 |
class LLVM_LIBRARY_VISIBILITY LFILinux : public Linux { |
| 19 |
public: |
| 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 |