writeProcComments is now member of Function, at it has an ostream based overload, also added gmock framework to dependencies

This commit is contained in:
Artur K
2012-03-13 00:16:09 +01:00
parent bc395da6ab
commit d39449124a
40 changed files with 3660 additions and 72 deletions

View File

@@ -2,6 +2,7 @@
#include "ast.h"
#include "types.h"
#include "machine_x86.h"
struct IDENTTYPE
{
condId idType;

View File

@@ -11,6 +11,13 @@
struct CALL_GRAPH;
struct COND_EXPR;
struct Disassembler;
struct Function;
struct CALL_GRAPH;
typedef llvm::iplist<Function> FunctionListType;
typedef FunctionListType lFunction;
typedef lFunction::iterator ilFunction;
namespace llvm
{
// Traits for intrusive list of basic blocks...
@@ -143,6 +150,7 @@ public:
void buildCFG(Disassembler &ds);
void controlFlowAnalysis();
void newRegArg(iICODE picode, iICODE ticode);
void writeProcComments(std::ostream &ostr);
protected:
// TODO: replace those with friend visitor ?
void propLongReg(int loc_ident_idx, const ID &pLocId);