Create a file for Path. Must be thread‐safe.

Synopsis

Declared in <llvm/Support/VirtualOutputBackend.h>

virtual
Expected<std::unique_ptr<OutputFileImpl>>
createFileImpl(
    StringRef Path,
    std::optional<OutputConfig> Config) = 0;

Return Value

The created file implementation, or an error on failure.

Parameters

Name

Description

Path

Path of the output file to create.

Config

Optional output configuration; nullopt uses the backend default.

Preconditions

  • Config is valid or std::nullopt.

Created with MrDocs