Debian Codegraph @

clang/lib/Driver/ToolChains/LFILinux.cpp

raw
1 //===-- LFILinux.cpp - 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 #include "LFILinux.h"
10 #include "clang/Driver/Driver.h"
11
12 using namespace clang::driver;
13 using namespace clang::driver::toolchains;
14 using namespace llvm::opt;
15
16 ToolChain::CXXStdlibType LFILinux::GetDefaultCXXStdlibType() const {
17 return ToolChain::CST_Libstdcxx;
18 }
19
20 void LFILinux::AddCXXStdlibLibArgs(const ArgList &Args,
21 ArgStringList &CmdArgs) const {
22 ToolChain::AddCXXStdlibLibArgs(Args, CmdArgs);
23 CmdArgs.push_back("-lc++abi");
24 }