[llvm] [AsmPrinter][ELF] Support profile-guided section prefix for jump tables' (read-only) data sections (PR #122215)

Snehasish Kumar via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 24 10:24:56 PST 2025


================
@@ -892,10 +892,14 @@ class AsmPrinter : public MachineFunctionPass {
   // Internal Implementation Details
   //===------------------------------------------------------------------===//
 
-  void emitJumpTableEntry(const MachineJumpTableInfo *MJTI,
+  template <typename Iterator>
+  void emitJumpTableImpl(const MachineJumpTableInfo &MJTI,
+                         const llvm::iterator_range<Iterator> &JumpTableIndices,
----------------
snehasish wrote:

nit: I think you can take an iterator range by value since it's a pair. 

https://github.com/llvm/llvm-project/pull/122215


More information about the llvm-commits mailing list