Fix struct/class confusion for Function class.
This commit is contained in:
parent
8875371cee
commit
7f1a4e26bd
@ -9,7 +9,7 @@
|
||||
#include "graph.h"
|
||||
//#include "icode.h"
|
||||
/* Basic block (BB) node definition */
|
||||
struct Function;
|
||||
class Function;
|
||||
class CIcodeRec;
|
||||
struct BB;
|
||||
struct LOCAL_ID;
|
||||
@ -27,7 +27,7 @@ struct TYPEADR_TYPE
|
||||
};
|
||||
struct BB
|
||||
{
|
||||
friend struct Function;
|
||||
friend class Function;
|
||||
private:
|
||||
BB(const BB&);
|
||||
BB() : nodeType(0),traversed(DFS_NONE),
|
||||
|
||||
@ -19,11 +19,11 @@ class QTextStream;
|
||||
struct CALL_GRAPH;
|
||||
struct Expr;
|
||||
struct Disassembler;
|
||||
struct Function;
|
||||
class Function;
|
||||
struct CALL_GRAPH;
|
||||
struct PROG;
|
||||
struct IStructuredTextTarget;
|
||||
struct Function;
|
||||
|
||||
|
||||
/* Procedure FLAGS */
|
||||
enum PROC_FLAGS
|
||||
@ -119,7 +119,7 @@ public:
|
||||
}
|
||||
void push_back(BB *v) { m_listBB.push_back(v);}
|
||||
};
|
||||
typedef std::shared_ptr<struct Function> PtrFunction;
|
||||
typedef std::shared_ptr<Function> PtrFunction;
|
||||
enum DecompilationStep : uint32_t {
|
||||
eNotDecoded, // no processing done yet
|
||||
eDisassemblyInProgress,
|
||||
|
||||
@ -28,7 +28,7 @@ static const condOp condOpJCond[12] = {LESS, LESS_EQUAL, GREATER_EQUAL, GREATER,
|
||||
EQUAL, NOT_EQUAL, LESS, GREATER_EQUAL,
|
||||
LESS_EQUAL, GREATER, GREATER_EQUAL, LESS};
|
||||
struct AstIdent;
|
||||
struct Function;
|
||||
class Function;
|
||||
struct STKFRAME;
|
||||
struct LOCAL_ID;
|
||||
struct ICODE;
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
#include <QTextStream>
|
||||
|
||||
struct LLInst;
|
||||
struct Function;
|
||||
class Function;
|
||||
typedef std::shared_ptr<Function> PtrFunction;
|
||||
|
||||
struct Disassembler
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
#include <stdint.h>
|
||||
#include <list>
|
||||
|
||||
struct Function;
|
||||
class Function;
|
||||
/* Types of basic block nodes */
|
||||
/* Real basic blocks: type defined according to their out-edges */
|
||||
enum eBBKind
|
||||
|
||||
@ -25,7 +25,7 @@
|
||||
|
||||
struct LOCAL_ID;
|
||||
struct BB;
|
||||
struct Function;
|
||||
class Function;
|
||||
struct STKFRAME;
|
||||
class CIcodeRec;
|
||||
struct ICODE;
|
||||
|
||||
@ -86,7 +86,7 @@ public:
|
||||
void updateSymType(uint32_t symbol, const TypeContainer &tc);
|
||||
SYM *updateGlobSym(uint32_t operand, int size, uint16_t duFlag, bool &inserted_new);
|
||||
};
|
||||
struct Function;
|
||||
class Function;
|
||||
struct SYMTABLE
|
||||
{
|
||||
std::string pSymName; /* Ptr to symbolic name or comment */
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
#include <QtCore/QPair>
|
||||
|
||||
class Project;
|
||||
struct Function;
|
||||
class Function;
|
||||
typedef std::shared_ptr<Function> PtrFunction;
|
||||
enum CommandLevel {
|
||||
eProject,
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
#include <QtCore/QString>
|
||||
#include <vector>
|
||||
|
||||
struct Function;
|
||||
class Function;
|
||||
|
||||
// This will create a PatternLocator instance load it and pass it to project instance.
|
||||
struct LoadPatternLibrary : public Command {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user