@@ -508,7 +508,7 @@ Error GenericKernelTy::init(GenericDeviceTy &GenericDevice,
508508 }
509509
510510 // Create a metadata object for the exec mode global (auto-generated).
511- StaticGlobalTy<llvm::omp::OMPTgtExecModeFlags> ExecModeGlobal (Name ,
511+ StaticGlobalTy<llvm::omp::OMPTgtExecModeFlags> ExecModeGlobal (getName () ,
512512 " _exec_mode" );
513513
514514 // Retrieve execution mode for the kernel. This may fail since some kernels
@@ -519,20 +519,20 @@ Error GenericKernelTy::init(GenericDeviceTy &GenericDevice,
519519 [[maybe_unused]] std::string ErrStr = toString (std::move (Err));
520520 DP (" Failed to read execution mode for '%s': %s\n "
521521 " Using default Bare (0) execution mode\n " ,
522- Name , ErrStr.data ());
522+ getName () , ErrStr.data ());
523523
524524 ExecutionMode = OMP_TGT_EXEC_MODE_BARE;
525525 } else {
526526 // Check that the retrieved execution mode is valid.
527527 if (!GenericKernelTy::isValidExecutionMode (ExecModeGlobal.getValue ()))
528528 return Plugin::error (ErrorCode::UNKNOWN,
529529 " Invalid execution mode %d for '%s'" ,
530- ExecModeGlobal.getValue (), Name );
530+ ExecModeGlobal.getValue (), getName () );
531531 ExecutionMode = ExecModeGlobal.getValue ();
532532 }
533533
534534 // Create a metadata object for the multi-device global (auto-generated).
535- StaticGlobalTy<int8_t > MultiDeviceGlobal (Name , " _multi_device" );
535+ StaticGlobalTy<int8_t > MultiDeviceGlobal (getName () , " _multi_device" );
536536 if (auto Err = GHandler.readGlobalFromImage (GenericDevice, Image,
537537 MultiDeviceGlobal)) {
538538 DP (" Missing symbol %s, continue execution anyway.\n " ,
0 commit comments