#include <gimple.h>
#include <c-common.h>
-#include "aop-main.c"
+#include "aop.h"
+
+static const char *aop_plugin_name;
static struct opt_pass template_pass = {
.type = GIMPLE_PASS,
.properties_destroyed = 0,
.todo_flags_start = 0,
.todo_flags_finish = TODO_update_ssa,
-}
+};
void aop_register_pass (const char *pass_name, pass_callback callback)
{
/* This is the last plug-in function called before GCC exits. Clean
up all the memory we allocated. */
-static void cleanup (void *event_date, void *data)
+static void aop_cleanup (void *event_date, void *data)
{
}
{
fprintf (stderr, "InterAspect init.\n");
+ plugin_info->base_name;
+
/* Register our cleanup function. */
- register_callback (plugin_name, PLUGIN_FINISH, aop_cleanup, NULL);
+ register_callback (aop_plugin_name, PLUGIN_FINISH, aop_cleanup, NULL);
/* Give the client plug-in its chance to register a pass. */
aop_main ();
calls can pass values from the running program to the advice
function. */
-typedef (unsigned int)(*pass_callback)();
+typedef unsigned int (*pass_callback)();
void aop_register_pass(const char *pass_name, pass_callback callback);
void aop_main();