From 723a06d7abfe10058a56608334e4260054f35d2b Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Sun, 2 Jun 2024 14:43:13 +0200 Subject: [PATCH] refactor: Convert ArgsInfo::output_ipa to fs::path --- src/ccache/ArgsInfo.hpp | 2 +- src/ccache/argprocessing.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ccache/ArgsInfo.hpp b/src/ccache/ArgsInfo.hpp index 5b231c32..7be3c9d1 100644 --- a/src/ccache/ArgsInfo.hpp +++ b/src/ccache/ArgsInfo.hpp @@ -66,7 +66,7 @@ struct ArgsInfo std::filesystem::path output_dwo; // The path to the ipa clones (implicit when using -fdump-ipa-clones). - std::string output_ipa; + std::filesystem::path output_ipa; // Assembler listing file. std::string output_al; diff --git a/src/ccache/argprocessing.cpp b/src/ccache/argprocessing.cpp index e2c05c7e..030919ca 100644 --- a/src/ccache/argprocessing.cpp +++ b/src/ccache/argprocessing.cpp @@ -1638,8 +1638,8 @@ process_args(Context& ctx) } if (args_info.generating_ipa_clones) { - args_info.output_ipa = util::pstr(core::make_relative_path( - ctx, util::add_extension(args_info.orig_input_file, ".000i.ipa-clones"))); + args_info.output_ipa = core::make_relative_path( + ctx, util::add_extension(args_info.orig_input_file, ".000i.ipa-clones")); } Args compiler_args = state.common_args; -- 2.47.2