llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT--> @llvm/pr-subscribers-clang-driver Author: None (pzzp) <details> <summary>Changes</summary> --- Full diff: https://github.com/llvm/llvm-project/pull/160047.diff 1 Files Affected: - (modified) clang/lib/Driver/Driver.cpp (+9-1) ``````````diff diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp index f110dbab3e5a5..2c977131aeeec 100644 --- a/clang/lib/Driver/Driver.cpp +++ b/clang/lib/Driver/Driver.cpp @@ -2668,7 +2668,15 @@ static unsigned PrintActions1(const Compilation &C, Action *A, int SibKind = HeadSibAction; os << Action::getClassName(A->getKind()) << ", "; if (InputAction *IA = dyn_cast<InputAction>(A)) { - os << "\"" << IA->getInputArg().getValue() << "\""; + llvm::StringRef InputValue{}; + const auto &Opt = IA->getInputArg().getOption(); + if (Opt.matches(options::OPT_Z_reserved_lib_stdcxx)) + InputValue = "stdc++"; + else if(Opt.matches(options::OPT_Z_reserved_lib_cckext)) + InputValue = "cc_kext"; + else + InputValue = IA->getInputArg().getValue(); + os << "\"" << InputValue << "\""; } else if (BindArchAction *BIA = dyn_cast<BindArchAction>(A)) { os << '"' << BIA->getArchName() << '"' << ", {" << PrintActions1(C, *BIA->input_begin(), Ids, SibIndent, SibKind) << "}"; `````````` </details> https://github.com/llvm/llvm-project/pull/160047 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
