diff --git a/src/rap_plugin/rap-hl-cfi.c b/src/rap_plugin/rap-hl-cfi.c index b73110a..148d9e4 100644 --- a/src/rap_plugin/rap-hl-cfi.c +++ b/src/rap_plugin/rap-hl-cfi.c @@ -12,6 +12,8 @@ #include #include "rap.h" #include "tree-pass.h" +#include "rap-hl-cfi.h" +#include "pointer-set.h" //#include "../include/pointer-set.h" /* There are many optimization methrod can do for RAP. @@ -47,7 +49,7 @@ static struct pointer_set_t *pointer_types; // static bool will_call_ipa_pta; /* For compatiable with the original RAP */ -typedef rap_hash_t.hash rap_hash_value_type; +typedef int rap_hash_value_type; /* Used for disable dom info, because dom info is function based, when cfun changed set this falg. */ static bool is_cfi_chaned_cfun; diff --git a/src/rap_plugin/rap.h b/src/rap_plugin/rap.h index d19d1b1..780fb98 100644 --- a/src/rap_plugin/rap.h +++ b/src/rap_plugin/rap.h @@ -2,7 +2,7 @@ #define RAP_H_INCLUDED #include "gcc-common.h" -#include "rap-fe-cfi.h" +#include "rap-hl-cfi.h" typedef struct { int hash; // will be sign extended to long in reality