[PATCH] D12786: Make AsmPrinter::EmitJumpTableInfo virtual

Dan Gohman via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 10 17:02:36 PDT 2015


sunfish created this revision.
sunfish added subscribers: llvm-commits, jfb.
sunfish set the repository for this revision to rL LLVM.

Targets that have non-traditional jump table mechanisms may need to do something substantially different for jump tables than what AsmPrinter::EmitJumpTableInfo does. This patch makes that function virtual so that targets can override it.

Repository:
  rL LLVM

http://reviews.llvm.org/D12786

Files:
  include/llvm/CodeGen/AsmPrinter.h

Index: include/llvm/CodeGen/AsmPrinter.h
===================================================================
--- include/llvm/CodeGen/AsmPrinter.h
+++ include/llvm/CodeGen/AsmPrinter.h
@@ -236,7 +236,7 @@
   /// Print assembly representations of the jump tables used by the current
   /// function to the current output stream.
   ///
-  void EmitJumpTableInfo();
+  virtual void EmitJumpTableInfo();
 
   /// Emit the control variable for an emulated TLS variable.
   virtual void EmitEmulatedTLSControlVariable(const GlobalVariable *GV,


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12786.34508.patch
Type: text/x-patch
Size: 539 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150911/253a1bd1/attachment.bin>


More information about the llvm-commits mailing list