This is the mail archive of the gcc-cvs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

r227093 - in /trunk/gcc: ChangeLog dominance.c


Author: miyuki
Date: Sat Aug 22 03:20:13 2015
New Revision: 227093

URL: https://gcc.gnu.org/viewcvs?rev=227093&root=gcc&view=rev
Log:
Refactor dominance.c: define dom_info as C++ class

gcc/
	* dominance.c (new_zero_array): Define.
	(dom_info): Redefine as class with proper encapsulation.
	(dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
	Add new members.
	(dom_info::dom_info, ~dom_info): Define.  Use new/delete for memory
	allocations/deallocations.  Pass function as parameter (instead of
	using cfun).
	(dom_info::get_idom): Define accessor method.
	(dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
	link_roots, calc_idoms): Redefine as class members.  Do not use cfun.
	(calculate_dominance_info): Adjust to use dom_info class.
	(verify_dominators): Likewise.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/dominance.c


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]