mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 19:42:36 +02:00
GP-1518 Decompiler support for unions
This commit is contained in:
parent
53e2c4dc4f
commit
3fdbbbb231
65 changed files with 5119 additions and 1068 deletions
|
@ -61,8 +61,9 @@ public:
|
|||
/// \brief Decide on integer promotion by examining just local properties of the given Varnode
|
||||
///
|
||||
/// \param vn is the given Varnode
|
||||
/// \param op is the PcodeOp reading the Varnode
|
||||
/// \return an IntPromotionCode (excluding NO_PROMOTION)
|
||||
virtual int4 localExtensionType(const Varnode *vn) const=0;
|
||||
virtual int4 localExtensionType(const Varnode *vn,const PcodeOp *op) const=0;
|
||||
|
||||
/// \brief Calculate the integer promotion code of a given Varnode
|
||||
///
|
||||
|
@ -157,7 +158,7 @@ public:
|
|||
/// \brief Casting strategies that are specific to the C language
|
||||
class CastStrategyC : public CastStrategy {
|
||||
public:
|
||||
virtual int4 localExtensionType(const Varnode *vn) const;
|
||||
virtual int4 localExtensionType(const Varnode *vn,const PcodeOp *op) const;
|
||||
virtual int4 intPromotionType(const Varnode *vn) const;
|
||||
virtual bool checkIntPromotionForCompare(const PcodeOp *op,int4 slot) const;
|
||||
virtual bool checkIntPromotionForExtension(const PcodeOp *op) const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue