From 5bdc52bc69d552eed7d1a8acd9540a93d30ed4b9 Mon Sep 17 00:00:00 2001 From: fye Date: Fri, 23 Sep 2022 13:17:39 -0700 Subject: [PATCH] PGO: remove path from gcda file name in gcov setup --- src/mapleall/mpl2mpl/src/gen_profile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mapleall/mpl2mpl/src/gen_profile.cpp b/src/mapleall/mpl2mpl/src/gen_profile.cpp index 382c6881fb..f354ecf23b 100644 --- a/src/mapleall/mpl2mpl/src/gen_profile.cpp +++ b/src/mapleall/mpl2mpl/src/gen_profile.cpp @@ -104,7 +104,7 @@ void ProfileGen::CreateModProfDesc() { modProfDescSymMirConst->AddItem(checksumMirConst, 5); // Make the profile file name as fileName.gcda - std::string profFileName = mod.GetProfileDataFileName() + namemangler::kProfFileNameExt; + std::string profFileName = mod.GetFileName().substr(0, mod.GetFileName().find_last_of(".")) + namemangler::kProfFileNameExt; auto *profileFNMirConst = modMP->New(profFileName, *GlobalTables::GetTypeTable().GetTypeFromTyIdx(TyIdx(PTY_a64))); modProfDescSymMirConst->AddItem(profileFNMirConst, 6); -- Gitee