@@ -954,12 +954,10 @@ llvm::Triple ToolChain::getTripleWithoutOSVersion() const {
954954
955955std::optional<std::string>
956956ToolChain::getTargetSubDirPath (StringRef BaseDir) const {
957- dbgs () << " getTargetSubDirPath: " << BaseDir << " \n " ;
958957 auto getPathForTriple =
959958 [&](const llvm::Triple &Triple) -> std::optional<std::string> {
960959 SmallString<128 > P (BaseDir);
961960 llvm::sys::path::append (P, Triple.str ());
962- dbgs () << " getTargetSubDirPath: " << P << " \n " ;
963961 if (getVFS ().exists (P))
964962 return std::string (P);
965963 return {};
@@ -1034,13 +1032,7 @@ std::optional<std::string> ToolChain::getRuntimePath() const {
10341032
10351033std::optional<std::string> ToolChain::getStdlibPath () const {
10361034 SmallString<128 > P (D.Dir );
1037- if (Triple.isOSDarwin ())
1038- dbgs () << " getStdlibPath(): " << P << " \n " ;
10391035 llvm::sys::path::append (P, " .." , " lib" );
1040- // Darwin does not use per-target runtime directory.
1041- if (Triple.isOSDarwin ())
1042- return std::string (P);
1043- dbgs () << " getStdlibPath(): " << P << " \n " ;
10441036 return getTargetSubDirPath (P);
10451037}
10461038
@@ -1559,11 +1551,9 @@ void ToolChain::AddCXXStdlibLibArgs(const ArgList &Args,
15591551
15601552void ToolChain::AddFilePathLibArgs (const ArgList &Args,
15611553 ArgStringList &CmdArgs) const {
1562- for (const auto &LibPath : getFilePaths ()) {
1563- llvm::dbgs () << " LibPath: " << LibPath << " \n " ;
1554+ for (const auto &LibPath : getFilePaths ())
15641555 if (LibPath.length () > 0 )
15651556 CmdArgs.push_back (Args.MakeArgString (StringRef (" -L" ) + LibPath));
1566- }
15671557}
15681558
15691559void ToolChain::AddCCKextLibArgs (const ArgList &Args,
0 commit comments