Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Call dt_cg_assoc_op() via dt_cg_load_var()
To load a variable, we currently call dt_cg_assoc_op() for associative arrays and dt_cg_load_var() for all other types of variables. This is unfortunate since associative arrays and thread-local variables share a lot of code, and this sharing will increase once NULL strings are supported. Further, such splitting is a different model from dt_cg_store_var(), where all variable types are handled by a common function. Therefore, call dt_cg_assoc_op() via dt_cg_load_var(). Subsequent patches will inline the call and consolidate common code. This first step appears separately to clarify the changes. Signed-off-by: Eugene Loh <eugene.loh@oracle.com> Reviewed-by: Nick Alcock <nick.alcock@oracle.com> Reviewed-by: Kris Van Hees <kris.van.hees@oracle.com>
- Loading branch information