================
@@ -114,20 +122,40 @@ std::pair<GlobalVariable *, GlobalVariable *>
 offloading::getOffloadEntryArray(Module &M, StringRef SectionName) {
   const llvm::Triple &Triple = M.getTargetTriple();
 
+  if (SectionName.empty())
----------------
pvelesko wrote:

Done in latest revision — removed the `SectionName` parameter from both 
`emitOffloadingEntry()` and `getOffloadEntryArray()`. 
`getOffloadEntrySection()` is now the sole source of truth, called internally.

https://github.com/llvm/llvm-project/pull/183991
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to