Compute a relative path from the directory of From to To.

Synopsis

Declared in <llvm/Object/ArchiveWriter.h>

Expected<std::string>
computeArchiveRelativePath(
    StringRef From,
    StringRef To);

Return Value

The relative path string, or an error if it cannot be computed.

Parameters

Name

Description

From

Path whose parent directory is the relative‐path base.

To

Destination path to express relative to From.

Created with MrDocs