mirror of
https://github.com/The-OpenROAD-Project/OpenSTA.git
synced 2026-09-07 03:43:29 +02:00
resizer support
This commit is contained in:
@@ -456,7 +456,19 @@ LibertyLibrary *
|
||||
ConcreteNetwork::findLiberty(const char *name)
|
||||
{
|
||||
ConcreteLibrary *lib = library_map_.findKey(name);
|
||||
return static_cast<LibertyLibrary*>(lib);
|
||||
if (lib) {
|
||||
if (lib->isLiberty())
|
||||
return static_cast<LibertyLibrary*>(lib);
|
||||
// Potential name conflict
|
||||
else {
|
||||
for (ConcreteLibrary *lib : library_seq_) {
|
||||
if (stringEq(lib->name(), name)
|
||||
&& lib->isLiberty())
|
||||
return static_cast<LibertyLibrary*>(lib);
|
||||
}
|
||||
}
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
LibertyLibrary *
|
||||
|
||||
Reference in New Issue
Block a user