summaryrefslogtreecommitdiff
path: root/lang/c/pseudoc.h
diff options
context:
space:
mode:
authorMark Rowe <mrowe@bdash.net.nz>2025-05-30 09:18:28 -0700
committerkat <kat@vector35.com>2025-06-18 10:41:33 -0400
commita7ff3ca06a7684a688628b9afb36398b3a4d9d45 (patch)
tree09be341274ff355d4a754350e1788a86032a09ae /lang/c/pseudoc.h
parentb3b06af27b7c706bb01fc215c342c97082975b14 (diff)
Have PseudoCFunction use its language's type printer
It was previously explicitly using the default. Retreiving it from the language will make it possible for PseudoObjCFunction to provide its own type printer.
Diffstat (limited to 'lang/c/pseudoc.h')
-rw-r--r--lang/c/pseudoc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lang/c/pseudoc.h b/lang/c/pseudoc.h
index 66178432..65d3fc69 100644
--- a/lang/c/pseudoc.h
+++ b/lang/c/pseudoc.h
@@ -5,6 +5,7 @@
class PseudoCFunction: public BinaryNinja::LanguageRepresentationFunction
{
BinaryNinja::Ref<BinaryNinja::HighLevelILFunction> m_highLevelIL;
+ BinaryNinja::Ref<BinaryNinja::TypePrinter> m_typePrinter;
enum FieldDisplayType
{
@@ -52,6 +53,8 @@ protected:
void EndLines(
const BinaryNinja::HighLevelILInstruction& instr, BinaryNinja::HighLevelILTokenEmitter& tokens) override;
+ BinaryNinja::TypePrinter* GetTypePrinter() const;
+
virtual void GetExpr_CALL_OR_TAILCALL(const BinaryNinja::HighLevelILInstruction& instr,
BinaryNinja::HighLevelILTokenEmitter& tokens, BinaryNinja::DisassemblySettings* settings,
BNOperatorPrecedence precedence, bool statement);