Skip to content

Commit 6c27ccf

Browse files
authored
Merge pull request #7883 from The-OpenROAD-Project-staging/secure-jhkim-trivial
ord: Added a new overloaded function prototype for writeDef(const char* filename, const char* version)
2 parents 2fc69f2 + 99749aa commit 6c27ccf

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

include/ord/OpenRoad.hh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ class OpenRoad
187187
int bloat_factor,
188188
bool bloat_occupied_layers);
189189

190+
void writeDef(const char* filename, const char* version);
190191
void writeDef(const char* filename,
191192
// major.minor (avoid including defout.h)
192193
const string& version);

src/OpenRoad.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,11 @@ static odb::defout::Version stringToDefVersion(const string& version)
348348
return odb::defout::Version::DEF_5_8;
349349
}
350350

351+
void OpenRoad::writeDef(const char* filename, const char* version)
352+
{
353+
writeDef(filename, std::string(version));
354+
}
355+
351356
void OpenRoad::writeDef(const char* filename, const string& version)
352357
{
353358
odb::dbChip* chip = db_->getChip();

0 commit comments

Comments
 (0)