Home
last modified time | relevance | path

Searched refs:FileOutputBuffer (Results 1 – 25 of 36) sorted by relevance

12

/openbsd-src/gnu/llvm/llvm/include/llvm/Support/
H A DFileOutputBuffer.h28 class FileOutputBuffer {
48 static Expected<std::unique_ptr<FileOutputBuffer>>
73 virtual ~FileOutputBuffer() = default;
80 FileOutputBuffer(StringRef Path) : FinalPath(Path) {} in FileOutputBuffer() function
H A DBinaryByteStream.h206 StreamImpl(std::unique_ptr<FileOutputBuffer> Buffer, in StreamImpl()
228 std::unique_ptr<FileOutputBuffer> FileBuffer;
232 FileBufferByteStream(std::unique_ptr<FileOutputBuffer> Buffer, in FileBufferByteStream()
/openbsd-src/gnu/llvm/llvm/lib/Support/
H A DFileOutputBuffer.cpp32 class OnDiskBuffer : public FileOutputBuffer {
35 : FileOutputBuffer(Path), Buffer(std::move(Buf)), Temp(std::move(Temp)) {} in OnDiskBuffer()
73 class InMemoryBuffer : public FileOutputBuffer {
77 : FileOutputBuffer(Path), Buffer(Buf), BufferSize(BufSize), in InMemoryBuffer()
124 static Expected<std::unique_ptr<FileOutputBuffer>>
155 Expected<std::unique_ptr<FileOutputBuffer>>
156 FileOutputBuffer::create(StringRef Path, size_t Size, unsigned Flags) { in create()
H A DCMakeLists.txt168 FileOutputBuffer.cpp
/openbsd-src/gnu/llvm/clang/tools/clang-offload-packager/
H A DClangOffloadPackager.cpp114 Expected<std::unique_ptr<FileOutputBuffer>> OutputOrErr = in bundleImages()
115 FileOutputBuffer::create(OutputFile, BinaryData.size()); in bundleImages()
118 std::unique_ptr<FileOutputBuffer> Output = std::move(*OutputOrErr); in bundleImages()
172 Expected<std::unique_ptr<FileOutputBuffer>> OutputOrErr = in unbundleImages()
173 FileOutputBuffer::create(Filename, Binary->getImage().size()); in unbundleImages()
176 std::unique_ptr<FileOutputBuffer> Output = std::move(*OutputOrErr); in unbundleImages()
/openbsd-src/gnu/llvm/llvm/lib/ObjCopy/
H A DArchive.cpp84 Expected<std::unique_ptr<FileOutputBuffer>> FB = in deepWriteArchive()
85 FileOutputBuffer::create(Member.MemberName, Member.Buf->getBufferSize(), in deepWriteArchive()
86 FileOutputBuffer::F_executable); in deepWriteArchive()
/openbsd-src/gnu/llvm/llvm/lib/ObjCopy/wasm/
H A DWasmObjcopy.cpp45 Expected<std::unique_ptr<FileOutputBuffer>> BufferOrErr = in dumpSectionToFile()
46 FileOutputBuffer::create(Filename, Contents.size()); in dumpSectionToFile()
49 std::unique_ptr<FileOutputBuffer> Buf = std::move(*BufferOrErr); in dumpSectionToFile()
/openbsd-src/gnu/llvm/llvm/tools/llvm-mt/
H A Dllvm-mt.cpp169 Expected<std::unique_ptr<FileOutputBuffer>> FileOrErr = in llvm_mt_main()
170 FileOutputBuffer::create(OutputFile, OutputBuffer->getBufferSize()); in llvm_mt_main()
173 std::unique_ptr<FileOutputBuffer> FileBuffer = std::move(*FileOrErr); in llvm_mt_main()
/openbsd-src/gnu/llvm/llvm/tools/llvm-cvtres/
H A Dllvm-cvtres.cpp216 FileOutputBuffer::create(OutputFile, OutputBuffer->getBufferSize()); in main()
219 std::unique_ptr<FileOutputBuffer> FileBuffer = std::move(*FileOrErr); in main()
/openbsd-src/gnu/llvm/lld/Common/
H A DFilesystem.cpp128 return errorToErrorCode(FileOutputBuffer::create(path, 1).takeError()); in tryCreateFile()
/openbsd-src/gnu/llvm/llvm/lib/ObjCopy/MachO/
H A DMachOObjcopy.cpp283 Expected<std::unique_ptr<FileOutputBuffer>> BufferOrErr = in dumpSectionToFile()
284 FileOutputBuffer::create(Filename, Sec->Content.size()); in dumpSectionToFile()
287 std::unique_ptr<FileOutputBuffer> Buf = std::move(*BufferOrErr); in dumpSectionToFile()
/openbsd-src/gnu/llvm/lld/include/lld/Common/
H A DErrorHandler.h121 std::unique_ptr<llvm::FileOutputBuffer> outputBuffer;
/openbsd-src/gnu/usr.bin/clang/libLLVMSupport/
H A DMakefile.shared62 FileOutputBuffer.cpp \
H A DMakefile63 FileOutputBuffer.cpp \
/openbsd-src/gnu/llvm/llvm/lib/ObjCopy/ELF/
H A DELFObjcopy.cpp182 Expected<std::unique_ptr<FileOutputBuffer>> BufferOrErr = in dumpSectionToFile()
183 FileOutputBuffer::create(Filename, Sec.OriginalData.size()); in dumpSectionToFile()
186 std::unique_ptr<FileOutputBuffer> Buf = std::move(*BufferOrErr); in dumpSectionToFile()
/openbsd-src/gnu/llvm/llvm/tools/llvm-lipo/
H A Dllvm-lipo.cpp502 Expected<std::unique_ptr<FileOutputBuffer>> OutFileOrError = in thinSlice()
503 FileOutputBuffer::create(OutputFileName, in thinSlice()
506 ? FileOutputBuffer::F_executable in thinSlice()
/openbsd-src/gnu/llvm/llvm/lib/InterfaceStub/
H A DELFObjHandler.cpp676 Expected<std::unique_ptr<FileOutputBuffer>> BufOrError = in writeELFBinaryToFile()
677 FileOutputBuffer::create(FilePath, Builder.getSize()); in writeELFBinaryToFile()
685 std::unique_ptr<FileOutputBuffer> FileBuf = std::move(*BufOrError); in writeELFBinaryToFile()
/openbsd-src/gnu/llvm/lld/MachO/
H A DWriter.cpp70 std::unique_ptr<FileOutputBuffer> &buffer;
1136 Expected<std::unique_ptr<FileOutputBuffer>> bufferOrErr = in openFile()
1137 FileOutputBuffer::create(config->outputFile, fileOff, in openFile()
1138 FileOutputBuffer::F_executable); in openFile()
/openbsd-src/gnu/llvm/llvm/utils/gn/secondary/llvm/lib/Support/
H A DBUILD.gn81 "FileOutputBuffer.cpp",
/openbsd-src/gnu/llvm/lld/wasm/
H A DWriter.cpp118 std::unique_ptr<FileOutputBuffer> buffer;
1704 Expected<std::unique_ptr<FileOutputBuffer>> bufferOrErr = in openFile()
1705 FileOutputBuffer::create(config->outputFile, fileSize, in openFile()
1706 FileOutputBuffer::F_executable); in openFile()
/openbsd-src/gnu/llvm/llvm/tools/llvm-rc/
H A Dllvm-rc.cpp737 std::unique_ptr<FileOutputBuffer> FileBuffer = in doCvtres()
738 ExitOnErr(FileOutputBuffer::create(Dest, OutputBuffer->getBufferSize())); in doCvtres()
/openbsd-src/gnu/llvm/lld/ELF/
H A DWriter.cpp82 std::unique_ptr<FileOutputBuffer> &buffer;
2873 flags |= FileOutputBuffer::F_executable; in openFile()
2875 flags |= FileOutputBuffer::F_no_mmap; in openFile()
2876 Expected<std::unique_ptr<FileOutputBuffer>> bufferOrErr = in openFile()
2877 FileOutputBuffer::create(config->outputFile, fileSize, flags); in openFile()
/openbsd-src/gnu/llvm/clang/tools/clang-linker-wrapper/
H A DClangLinkerWrapper.cpp776 Expected<std::unique_ptr<FileOutputBuffer>> OutputOrErr = in writeOffloadFile()
777 FileOutputBuffer::create(*TempFileOrErr, Binary.getImage().size()); in writeOffloadFile()
780 std::unique_ptr<FileOutputBuffer> Output = std::move(*OutputOrErr); in writeOffloadFile()
/openbsd-src/gnu/llvm/llvm/lib/DebugInfo/MSF/
H A DMSFBuilder.cpp367 auto OutFileOrError = FileOutputBuffer::create(Path, FileSize); in commit()
/openbsd-src/gnu/llvm/lld/COFF/
H A DWriter.cpp268 std::unique_ptr<FileOutputBuffer> &buffer;
1617 FileOutputBuffer::create(path, fileSize, FileOutputBuffer::F_executable), in openFile()

12