Make AsmPrinter::EmitJumpTableInfo virtual
authorDan Gohman <dan433584@gmail.com>
Mon, 14 Sep 2015 19:44:29 +0000 (19:44 +0000)
committerDan Gohman <dan433584@gmail.com>
Mon, 14 Sep 2015 19:44:29 +0000 (19:44 +0000)
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.

Differential Revision:   http://reviews.llvm.org/D12786

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247604 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/AsmPrinter.h

index 6a81bb8543f6955429cad4be1e11ddec034e540e..c511b4959b80093b0ae131a88f7f3f64407d6260 100644 (file)
@@ -236,7 +236,7 @@ public:
   /// 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,