Skip to content

Commit 1ab8965

Browse files
committed
Evern though flang-rt only supports LLVM_ENABLE_PER_TARGET_RUNTIME_DIR=ON, LoP should still be able to handle both to be consistent with clang-rt.
1 parent 310bcff commit 1ab8965

File tree

2 files changed

+0
-22
lines changed

2 files changed

+0
-22
lines changed

clang/lib/Driver/ToolChains/PPCLinux.cpp

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -103,24 +103,6 @@ bool PPCLinuxToolChain::SupportIEEEFloat128(
103103
!(D.CCCIsCXX() && HasUnsupportedCXXLib);
104104
}
105105

106-
std::string PPCLinuxToolChain::getCompilerRT(const ArgList &Args,
107-
StringRef Component, FileType Type,
108-
bool IsFortran) const {
109-
// Check for runtime files in the new layout without the architecture first.
110-
std::string CRTBasename = buildCompilerRTBasename(
111-
Args, Component, Type, /*AddArch=*/false, IsFortran);
112-
SmallString<128> Path;
113-
for (const auto &LibPath : getLibraryPaths()) {
114-
SmallString<128> P(LibPath);
115-
llvm::sys::path::append(P, CRTBasename);
116-
if (getVFS().exists(P))
117-
return std::string(P);
118-
if (Path.empty())
119-
Path = P;
120-
}
121-
return std::string(Path);
122-
}
123-
124106
void PPCLinuxToolChain::addFortranRuntimeLibs(
125107
const ArgList &Args, llvm::opt::ArgStringList &CmdArgs) const {
126108
// Link static flang_rt.runtime.a or shared flang_rt.runtime.so

clang/lib/Driver/ToolChains/PPCLinux.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@ class LLVM_LIBRARY_VISIBILITY PPCLinuxToolChain : public Linux {
2424
AddClangSystemIncludeArgs(const llvm::opt::ArgList &DriverArgs,
2525
llvm::opt::ArgStringList &CC1Args) const override;
2626

27-
std::string getCompilerRT(const llvm::opt::ArgList &Args, StringRef Component,
28-
FileType Type = ToolChain::FT_Static,
29-
bool IsFortran = false) const override;
30-
3127
void addFortranRuntimeLibs(const llvm::opt::ArgList &Args,
3228
llvm::opt::ArgStringList &CmdArgs) const override;
3329

0 commit comments

Comments
 (0)