From: Dan Gohman <dan433584@gmail.com>
Date: Mon, 14 Sep 2015 19:44:29 +0000 (+0000)
Subject: Make AsmPrinter::EmitJumpTableInfo virtual
X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=7de9f7a2205f7e5041a4ecc8fdae8d6961be68ca;p=oota-llvm.git

Make AsmPrinter::EmitJumpTableInfo virtual

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
---

diff --git a/include/llvm/CodeGen/AsmPrinter.h b/include/llvm/CodeGen/AsmPrinter.h
index 6a81bb8543f..c511b4959b8 100644
--- a/include/llvm/CodeGen/AsmPrinter.h
+++ b/include/llvm/CodeGen/AsmPrinter.h
@@ -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,