@@ -1436,7 +1436,7 @@ amd_comgr_status_t AMDGPUCompiler::linkBitcodeToBitcode() {
14361436
14371437 if (Input->DataKind == AMD_COMGR_DATA_KIND_BC) {
14381438 if (env::shouldEmitVerboseLogs ()) {
1439- LogS << " \t Linking Bitcode: " << InputDir << " / " << Input->Name
1439+ LogS << " \t Linking Bitcode: " << InputDir << path::get_separator () << Input->Name
14401440 << " \n " ;
14411441 }
14421442
@@ -1458,7 +1458,7 @@ amd_comgr_status_t AMDGPUCompiler::linkBitcodeToBitcode() {
14581458 return AMD_COMGR_STATUS_ERROR;
14591459 } else if (Input->DataKind == AMD_COMGR_DATA_KIND_BC_BUNDLE) {
14601460 if (env::shouldEmitVerboseLogs ()) {
1461- LogS << " Linking Bundle: " << InputDir << " / " << Input->Name
1461+ LogS << " Linking Bundle: " << InputDir << path::get_separator () << Input->Name
14621462 << " \n " ;
14631463 }
14641464
@@ -1501,7 +1501,7 @@ amd_comgr_status_t AMDGPUCompiler::linkBitcodeToBitcode() {
15011501 // on Windows. Replace with '_'
15021502 std::replace (OutputFileName.begin (), OutputFileName.end (), ' :' , ' _' );
15031503
1504- std::string OutputFilePath = OutputDir.str ().str () + " / " + OutputFileName;
1504+ std::string OutputFilePath = OutputDir.str ().str () + path::get_separator (). str () + OutputFileName;
15051505 BundlerConfig.OutputFileNames .push_back (OutputFilePath);
15061506
15071507 OffloadBundler Bundler (BundlerConfig);
@@ -1556,7 +1556,7 @@ amd_comgr_status_t AMDGPUCompiler::linkBitcodeToBitcode() {
15561556 // Unbundle bitcode archive
15571557 else if (Input->DataKind == AMD_COMGR_DATA_KIND_AR_BUNDLE) {
15581558 if (env::shouldEmitVerboseLogs ()) {
1559- LogS << " \t Linking Archive: " << InputDir << " / " << Input->Name
1559+ LogS << " \t Linking Archive: " << InputDir << path::get_separator () << Input->Name
15601560 << " \n " ;
15611561 }
15621562
@@ -1602,7 +1602,7 @@ amd_comgr_status_t AMDGPUCompiler::linkBitcodeToBitcode() {
16021602 // on Windows. Replace with '_'
16031603 std::replace (OutputFileName.begin (), OutputFileName.end (), ' :' , ' _' );
16041604
1605- std::string OutputFilePath = OutputDir.str ().str () + " / " + OutputFileName;
1605+ std::string OutputFilePath = OutputDir.str ().str () + path::get_separator (). str () + OutputFileName;
16061606 BundlerConfig.OutputFileNames .push_back (OutputFilePath);
16071607
16081608 OffloadBundler Bundler (BundlerConfig);
0 commit comments