[llvm] Jump table annotations for Linux (PR #112606)

Nick Desaulniers via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 16 14:12:16 PDT 2024


================
@@ -453,6 +453,10 @@ class AsmPrinter : public MachineFunctionPass {
   /// function to the current output stream.
   virtual void emitJumpTableInfo();
 
+  /// Emit jump table annotations correlating each table with its associated
+  /// indirect branch instruction.
+  virtual void emitJumpTableAnnotation(const MachineFunction &MF, const MachineInstr &MI);
----------------
nickdesaulniers wrote:

Does it need to be virtual if you're only providing one definition?

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


More information about the llvm-commits mailing list