#include "aop.h"
#include "aop-pointcut.h"
+//#define PAUSE_ON_START
+
static const char *aop_plugin_name;
void
pass_aop->execute = callback;
pass_info.pass = pass_aop;
- pass_info.reference_pass_name = "*all_optimizations";
+ pass_info.reference_pass_name = "cfg";
pass_info.ref_pass_instance_number = 0;
- pass_info.pos_op = PASS_POS_INSERT_BEFORE;
+ pass_info.pos_op = PASS_POS_INSERT_AFTER;
/* Safe the pointer to this object so we can free it later. */
VEC_safe_push(aop_pass, heap, aop_pass_list, pass_aop);
{
fprintf (stderr, "InterAspect init.\n");
+#ifdef PAUSE_ON_START
+ fprintf(stderr, "cc has PID %d. Attach debugger now.\n", getpid());
+ fprintf(stderr, "[Enter to continue.]\n");
+ scanf("%*c");
+#endif
+
aop_plugin_name = plugin_info->base_name;
/* Register our cleanup function. */