Skip to content

Commit 72aff35

Browse files
committed
Revert "Fix/Debug"
This reverts commit 6d91fcd.
1 parent 5ce50f1 commit 72aff35

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

clang/lib/Driver/ToolChain.cpp

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -954,12 +954,10 @@ llvm::Triple ToolChain::getTripleWithoutOSVersion() const {
954954

955955
std::optional<std::string>
956956
ToolChain::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

10351033
std::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

15601552
void 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

15691559
void ToolChain::AddCCKextLibArgs(const ArgList &Args,

0 commit comments

Comments
 (0)