diff --git a/src/db/db/dbNetlistDeviceExtractor.cc b/src/db/db/dbNetlistDeviceExtractor.cc index b2ff51302..77edf3b83 100644 --- a/src/db/db/dbNetlistDeviceExtractor.cc +++ b/src/db/db/dbNetlistDeviceExtractor.cc @@ -173,6 +173,16 @@ void NetlistDeviceExtractor::extract (db::Layout &layout, db::Cell &cell, const extract_without_initialize (layout, cell, clusters, layers); } +namespace { + +struct ExtractorCacheValueType { + ExtractorCacheValueType () { } + db::Vector disp; + tl::vector devices; +}; + +} + void NetlistDeviceExtractor::extract_without_initialize (db::Layout &layout, db::Cell &cell, hier_clusters_type &clusters, const std::vector &layers) { tl_assert (layers.size () == m_layer_definitions.size ()); @@ -233,12 +243,6 @@ void NetlistDeviceExtractor::extract_without_initialize (db::Layout &layout, db: tl::RelativeProgress progress (tl::to_string (tr ("Extracting devices")), n, 1); - struct ExtractorCacheValueType { - ExtractorCacheValueType () { } - db::Vector disp; - tl::vector devices; - }; - typedef std::map, ExtractorCacheValueType> extractor_cache_type; extractor_cache_type extractor_cache;