================
@@ -52,11 +52,15 @@ class NVPTXMachineFunctionInfo : public MachineFunctionInfo 
{
     return ImageHandleSymbols.contains(Symbol);
   }
 
-  void addCallPrototype(unsigned Id, const CallBase *CB) {
-    CallPrototypes.try_emplace(Id, CB);
+  MCSymbol *addCallPrototype(const CallBase *CB, MachineFunction &MF) {
+    MCSymbol *Symbol =
+        MF.getContext().createTempSymbol("prototype_",
+                                         /*AlwaysAddSuffix=*/true);
----------------
AlexMaclean wrote:

Nit: just drop `/*AlwaysAddSuffix=*/true` since this is the default value. 

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

Reply via email to