21void OutputBackend::anchor() {}
25 std::optional<OutputConfig> Config) {
27 Path.toVector(PathStorage);
31 if (!Config->getText() && Config->getCRLF())
35 std::unique_ptr<OutputFileImpl> Impl;
38 assert(Impl &&
"Expected valid Impl or Error");
39 return OutputFile(PathStorage, std::move(Impl));
assert(UImm &&(UImm !=~static_cast< T >(0)) &&"Invalid immediate!")
This file defines the SmallString class.
This file contains the declarations of the VirtualOutputBackend class, which can be used to virtualiz...
This file contains the declarations of the OutputError class.
Lightweight error class with error context and mandatory checking.
SmallString - A SmallString is just a SmallVector with methods and accessors that make it work better...
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
virtual Expected< std::unique_ptr< OutputFileImpl > > createFileImpl(StringRef Path, std::optional< OutputConfig > Config)=0
Create a file for Path.
Expected< OutputFile > createFile(const Twine &Path, std::optional< OutputConfig > Config=std::nullopt)
Create a file.
A virtualized output file that writes to a specific backend.
This is an optimization pass for GlobalISel generic memory operations.
Error make_error(ArgTs &&... Args)
Make a Error instance representing failure using the given error info type.