================
@@ -28,9 +29,10 @@ class NVPTXMachineFunctionInfo : public MachineFunctionInfo {
   /// references.
   SmallPtrSet<const MCSymbol *, 8> ImageHandleSymbols;
 
+  using CallProtoTy = std::pair<const CallBase *, MCSymbol *>;
   /// Stores a mapping from a unique call-site id to the call instruction that
   /// needs an indirect-call prototype emitted.
-  std::map<unsigned, const CallBase *> CallPrototypes;
+  std::map<unsigned, CallProtoTy> CallPrototypes;
----------------
AlexMaclean wrote:

Instead of adding all this machinery here and in the AsmPrinter, we should just 
directly store the MCSymbol as an operand on the call instruction during call 
lowering in ISel, similar to how we store symbols for parameters today. 

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