+2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
+
+ * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
+ * passes.c (pass_manager::register_dump_files_1): Remove dead code
+ dealing with properties.
+ (pass_manager::register_dump_files): Adjust.
+
2014-03-20 Mark Wielaard <mjw@redhat.com>
* dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
private:
void set_pass_for_id (int id, opt_pass *pass);
- int register_dump_files_1 (opt_pass *pass, int properties);
+ void register_dump_files_1 (opt_pass *pass);
void register_dump_files (opt_pass *pass, int properties);
private:
/* Recursive worker function for register_dump_files. */
-int
+void
pass_manager::
-register_dump_files_1 (opt_pass *pass, int properties)
+register_dump_files_1 (opt_pass *pass)
{
do
{
- int new_properties = (properties | pass->properties_provided)
- & ~pass->properties_destroyed;
-
if (pass->name && pass->name[0] != '*')
register_one_dump_file (pass);
if (pass->sub)
- new_properties = register_dump_files_1 (pass->sub, new_properties);
-
- /* If we have a gate, combine the properties that we could have with
- and without the pass being examined. */
- if (pass->has_gate)
- properties &= new_properties;
- else
- properties = new_properties;
+ register_dump_files_1 (pass->sub);
pass = pass->next;
}
while (pass);
-
- return properties;
}
/* Register the dump files for the pass_manager starting at PASS.
register_dump_files (opt_pass *pass,int properties)
{
pass->properties_required |= properties;
- register_dump_files_1 (pass, properties);
+ register_dump_files_1 (pass);
}
struct pass_registry