From 30eade046424dc86966d09d4ec6b26e43640ce89 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Florian=20M=C3=A4rkl?= <info@florianmaerkl.de>
Date: Sat, 3 Aug 2019 15:21:59 +0200
Subject: [PATCH 09/23] Make some PrintC methods virtual

---
 Ghidra/Features/Decompiler/src/decompile/cpp/printc.hh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Ghidra/Features/Decompiler/src/decompile/cpp/printc.hh b/Ghidra/Features/Decompiler/src/decompile/cpp/printc.hh
index f315d7023..9301678ee 100644
--- a/Ghidra/Features/Decompiler/src/decompile/cpp/printc.hh
+++ b/Ghidra/Features/Decompiler/src/decompile/cpp/printc.hh
@@ -152,9 +152,9 @@ protected:
   void emitPrototypeInputs(const FuncProto *proto);	///< Emit the input data-types of a function prototype
   void emitGlobalVarDeclsRecursive(Scope *scope);	///< Emit variable declarations for all global symbols under given scope
   void emitLocalVarDecls(const Funcdata *fd);		///< Emit variable declarations for a function
-  void emitStatement(const PcodeOp *inst);		///< Emit a statement in the body of a function
+  virtual void emitStatement(const PcodeOp *inst);	///< Emit a statement in the body of a function
   bool emitInplaceOp(const PcodeOp *op);		///< Attempt to emit an expression rooted at an \e in-place operator
-  void emitGotoStatement(const FlowBlock *bl,const FlowBlock *exp_bl,uint4 type);
+  virtual void emitGotoStatement(const FlowBlock *bl,const FlowBlock *exp_bl,uint4 type);
   void emitSwitchCase(int4 casenum,const BlockSwitch *switchbl);	///< Emit labels for a \e case block
   void emitLabel(const FlowBlock *bl);			///< Emit a formal label for a given control-flow block
   void emitLabelStatement(const FlowBlock *bl);		///< Emit any required label statement for a given basic block
-- 
2.24.3 (Apple Git-128)

