summaryrefslogtreecommitdiff
path: root/gcc/ipa-hello-world.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ipa-hello-world.c')
-rw-r--r--gcc/ipa-hello-world.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/ipa-hello-world.c b/gcc/ipa-hello-world.c
index 3acab60d194..52ad819bc5b 100644
--- a/gcc/ipa-hello-world.c
+++ b/gcc/ipa-hello-world.c
@@ -39,6 +39,7 @@
#include "type-stringifier.hpp"
#include <map>
#include <vector>
+#include "type-escaper.hpp"
//#define OPTIMIZED
#define SANITY_CHECKS
@@ -79,7 +80,6 @@ Reason::operator|=(const Reason &other)
return *this;
}
-typedef std::map<const_tree, Reason> typemap;
static inline void
assert_type_is_in_universe(const_tree type, ptrset_t &types)
@@ -1036,12 +1036,15 @@ print_escaping_types_in_set(ptrset_t &types)
}
+ptrset_t *TypeEscaper::types = NULL;
+typemap TypeEscaper::calc;
static unsigned int
iphw_execute()
{
ptrset_t types;
TypeCollector::ptrset = &types;
+ TypeEscaper::types = &types;
collect_types(types);
typemap eacalc; // Escape Analysis Calculation