passes/hierarchy: Reduce code duplication in expand_module
authorSergi Granell <xerpi.g.12@gmail.com>
Tue, 27 Mar 2018 07:35:20 +0000 (09:35 +0200)
committerSergi Granell <xerpi.g.12@gmail.com>
Tue, 27 Mar 2018 07:35:20 +0000 (09:35 +0200)
commitf93f8aaa114b06e046a107c9e1f77046a4b5b1fc
tree8a18ca5f81134be0c4aa8cba4a1453804781b6d5
parent77bd645c35225d4fa1a1c632457acfb47b7388eb
passes/hierarchy: Reduce code duplication in expand_module

This also makes it easier to add new file extensions support.

Signed-off-by: Sergi Granell <xerpi.g.12@gmail.com>
passes/hierarchy/hierarchy.cc