MCPcopy Create free account
hub / github.com/chipsalliance/Surelog / copy

Method copy

src/Common/FileSystem.cpp:369–378  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

367}
368
369PathId FileSystem::copy(PathId id, SymbolTable *toSymbolTable) {
370 if (!id) return BadPathId;
371 if (id.getSymbolTable() == toSymbolTable) return id;
372
373 const std::string_view symbol1 = toPath(id);
374 if (symbol1 == BadRawSymbol) return BadPathId;
375
376 auto [symbolId, symbol2] = toSymbolTable->add(symbol1);
377 return PathId(toSymbolTable, (RawSymbolId)symbolId, symbol2);
378}
379} // namespace SURELOG

Callers 15

cacheErrorsMethod · 0.80
cacheVObjectsMethod · 0.80
cacheMacrosMethod · 0.80
cacheTimeInfosMethod · 0.80
cacheIncludeFileInfosMethod · 0.80
cacheDesignElementsMethod · 0.80
checkModule_Method · 0.80
checkInterface_Method · 0.80
identifyTopModules_Method · 0.80
elaborate_Method · 0.80

Calls 2

PathIdClass · 0.50
getSymbolTableMethod · 0.45

Tested by 1