"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/Driver/ToolChains/MipsLinux.cpp" between
cfe-8.0.1.src.tar.xz and cfe-9.0.0.src.tar.xz

About: Clang is an LLVM front end for the C, C++, and Objective-C languages. Clang aims to provide a better user experience through expressive diagnostics, a high level of conformance to language standards, fast compilation, and low memory use.

MipsLinux.cpp  (cfe-8.0.1.src.tar.xz):MipsLinux.cpp  (cfe-9.0.0.src.tar.xz)
//===--- Mips.cpp - Mips ToolChain Implementations --------------*- C++ -*-===// //===-- MipsLinux.cpp - Mips ToolChain Implementations ----------*- C++ -*-===//
// //
// The LLVM Compiler Infrastructure // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// // See https://llvm.org/LICENSE.txt for license information.
// This file is distributed under the University of Illinois Open Source // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
// License. See LICENSE.TXT for details.
// //
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
#include "MipsLinux.h" #include "MipsLinux.h"
#include "Arch/Mips.h" #include "Arch/Mips.h"
#include "CommonArgs.h" #include "CommonArgs.h"
#include "clang/Driver/Driver.h" #include "clang/Driver/Driver.h"
#include "clang/Driver/DriverDiagnostic.h" #include "clang/Driver/DriverDiagnostic.h"
#include "clang/Driver/Options.h" #include "clang/Driver/Options.h"
#include "llvm/Option/ArgList.h" #include "llvm/Option/ArgList.h"
skipping to change at line 122 skipping to change at line 121
assert((GetCXXStdlibType(Args) == ToolChain::CST_Libcxx) && assert((GetCXXStdlibType(Args) == ToolChain::CST_Libcxx) &&
"Only -lc++ (aka libxx) is supported in this toolchain."); "Only -lc++ (aka libxx) is supported in this toolchain.");
CmdArgs.push_back("-lc++"); CmdArgs.push_back("-lc++");
CmdArgs.push_back("-lc++abi"); CmdArgs.push_back("-lc++abi");
CmdArgs.push_back("-lunwind"); CmdArgs.push_back("-lunwind");
} }
std::string MipsLLVMToolChain::getCompilerRT(const ArgList &Args, std::string MipsLLVMToolChain::getCompilerRT(const ArgList &Args,
StringRef Component, StringRef Component,
bool Shared) const { FileType Type) const {
SmallString<128> Path(getDriver().ResourceDir); SmallString<128> Path(getDriver().ResourceDir);
llvm::sys::path::append(Path, SelectedMultilib.osSuffix(), "lib" + LibSuffix, llvm::sys::path::append(Path, SelectedMultilib.osSuffix(), "lib" + LibSuffix,
getOS()); getOS());
llvm::sys::path::append(Path, Twine("libclang_rt." + Component + "-" + const char *Suffix;
"mips" + (Shared ? ".so" : ".a"))); switch (Type) {
case ToolChain::FT_Object:
Suffix = ".o";
break;
case ToolChain::FT_Static:
Suffix = ".a";
break;
case ToolChain::FT_Shared:
Suffix = ".so";
break;
}
llvm::sys::path::append(
Path, Twine("libclang_rt." + Component + "-" + "mips" + Suffix));
return Path.str(); return Path.str();
} }
 End of changes. 4 change blocks. 
8 lines changed or deleted 19 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)