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

Method getOutputDir

src/Common/PlatformFileSystem.cpp:427–439  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

425}
426
427PathId PlatformFileSystem::getOutputDir(std::string_view dir,
428 SymbolTable *symbolTable) {
429 const std::filesystem::path dirpath(dir);
430 if (dir.empty() || !dirpath.is_absolute()) return BadPathId;
431
432 PathId outputDirId = toPathId(dirpath.string(), symbolTable);
433 m_outputDir = toPath(outputDirId);
434 if (kEnableLogs) {
435 std::cerr << "getOutputDir: " << dir << " => " << PathIdPP(outputDirId)
436 << std::endl;
437 }
438 return outputDirId;
439}
440
441PathId PlatformFileSystem::getPrecompiledDir(PathId programId,
442 SymbolTable *symbolTable) {

Callers 2

parseCommandLineMethod · 0.80

Calls 1

PathIdPPClass · 0.85

Tested by

no test coverage detected