================
@@ -1407,6 +1421,25 @@ void CGNVCUDARuntime::emitOffloadProfilingSections() {
M, PtrTy, /*isConstant=*/false, llvm::GlobalValue::ExternalLinkage,
llvm::ConstantPointerNull::get(PtrTy), Name);
CGM.addCompilerUsedGlobal(OffloadProfShadow);
+
+ auto AddSectionShadow = [&](StringRef Kind, StringRef DeviceName) {
----------------
arsenm wrote:
Make this take Twine for DeviceName and defer std::string creation until needed
https://github.com/llvm/llvm-project/pull/202095
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits