Home
last modified time | relevance | path

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

12

/llvm-project-15.0.7/llvm/unittests/Support/
H A DFileOutputBufferTest.cpp33 TEST(FileOutputBuffer, Test) { in TEST() argument
45 Expected<std::unique_ptr<FileOutputBuffer>> BufferOrErr = in TEST()
46 FileOutputBuffer::create(File1, 8192); in TEST()
48 std::unique_ptr<FileOutputBuffer> &Buffer = *BufferOrErr; in TEST()
68 FileOutputBuffer::create(File2, 8192); in TEST()
84 Expected<std::unique_ptr<FileOutputBuffer>> BufferOrErr = in TEST()
85 FileOutputBuffer::create(File3, 8192000); in TEST()
87 std::unique_ptr<FileOutputBuffer> &Buffer = *BufferOrErr; in TEST()
106 FileOutputBuffer::create(File4, 8192, FileOutputBuffer::F_executable); in TEST()
126 FileOutputBuffer::create(File5, 8000, FileOutputBuffer::F_no_mmap); in TEST()
[all …]
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/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.txt170 FileOutputBuffer.cpp
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/clang/tools/clang-offload-packager/
H A DClangOffloadPackager.cpp124 Expected<std::unique_ptr<FileOutputBuffer>> OutputOrErr = in main()
125 FileOutputBuffer::create(OutputFile, BinaryData.size()); in main()
128 std::unique_ptr<FileOutputBuffer> Output = std::move(*OutputOrErr); in main()
/llvm-project-15.0.7/llvm/tools/llvm-mt/
H A Dllvm-mt.cpp166 Expected<std::unique_ptr<FileOutputBuffer>> FileOrErr = in main()
167 FileOutputBuffer::create(OutputFile, OutputBuffer->getBufferSize()); in main()
170 std::unique_ptr<FileOutputBuffer> FileBuffer = std::move(*FileOrErr); in main()
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/llvm/tools/llvm-cvtres/
H A Dllvm-cvtres.cpp213 FileOutputBuffer::create(OutputFile, OutputBuffer->getBufferSize()); in main()
216 std::unique_ptr<FileOutputBuffer> FileBuffer = std::move(*FileOrErr); in main()
/llvm-project-15.0.7/lld/Common/
H A DFilesystem.cpp128 return errorToErrorCode(FileOutputBuffer::create(path, 1).takeError()); in tryCreateFile()
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/lld/include/lld/Common/
H A DErrorHandler.h121 std::unique_ptr<llvm::FileOutputBuffer> outputBuffer;
/llvm-project-15.0.7/llvm/lib/InterfaceStub/
H A DELFObjHandler.cpp675 Expected<std::unique_ptr<FileOutputBuffer>> BufOrError = in writeELFBinaryToFile()
676 FileOutputBuffer::create(FilePath, Builder.getSize()); in writeELFBinaryToFile()
684 std::unique_ptr<FileOutputBuffer> FileBuf = std::move(*BufOrError); in writeELFBinaryToFile()
/llvm-project-15.0.7/llvm/lib/ObjCopy/ELF/
H A DELFObjcopy.cpp183 Expected<std::unique_ptr<FileOutputBuffer>> BufferOrErr = in dumpSectionToFile()
184 FileOutputBuffer::create(Filename, Sec.OriginalData.size()); in dumpSectionToFile()
187 std::unique_ptr<FileOutputBuffer> Buf = std::move(*BufferOrErr); in dumpSectionToFile()
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/lld/MachO/
H A DWriter.cpp70 std::unique_ptr<FileOutputBuffer> &buffer;
1088 Expected<std::unique_ptr<FileOutputBuffer>> bufferOrErr = in openFile()
1089 FileOutputBuffer::create(config->outputFile, fileOff, in openFile()
1090 FileOutputBuffer::F_executable); in openFile()
/llvm-project-15.0.7/llvm/utils/gn/secondary/llvm/lib/Support/
H A DBUILD.gn83 "FileOutputBuffer.cpp",
/llvm-project-15.0.7/lld/wasm/
H A DWriter.cpp117 std::unique_ptr<FileOutputBuffer> buffer;
1681 Expected<std::unique_ptr<FileOutputBuffer>> bufferOrErr = in openFile()
1682 FileOutputBuffer::create(config->outputFile, fileSize, in openFile()
1683 FileOutputBuffer::F_executable); in openFile()
/llvm-project-15.0.7/llvm/tools/llvm-rc/
H A Dllvm-rc.cpp718 std::unique_ptr<FileOutputBuffer> FileBuffer = in doCvtres()
719 ExitOnErr(FileOutputBuffer::create(Dest, OutputBuffer->getBufferSize())); in doCvtres()
/llvm-project-15.0.7/lld/ELF/
H A DWriter.cpp82 std::unique_ptr<FileOutputBuffer> &buffer;
2850 flags |= FileOutputBuffer::F_executable; in openFile()
2852 flags |= FileOutputBuffer::F_no_mmap; in openFile()
2853 Expected<std::unique_ptr<FileOutputBuffer>> bufferOrErr = in openFile()
2854 FileOutputBuffer::create(config->outputFile, fileSize, flags); in openFile()
/llvm-project-15.0.7/llvm/lib/DebugInfo/MSF/
H A DMSFBuilder.cpp367 auto OutFileOrError = FileOutputBuffer::create(Path, FileSize); in commit()
/llvm-project-15.0.7/clang/tools/clang-linker-wrapper/
H A DClangLinkerWrapper.cpp1072 Expected<std::unique_ptr<FileOutputBuffer>> OutputOrErr = in writeOffloadFile()
1073 FileOutputBuffer::create(*TempFileOrErr, Binary.getImage().size()); in writeOffloadFile()
1076 std::unique_ptr<FileOutputBuffer> Output = std::move(*OutputOrErr); in writeOffloadFile()
/llvm-project-15.0.7/lld/COFF/
H A DWriter.cpp251 std::unique_ptr<FileOutputBuffer> &buffer;
1535 FileOutputBuffer::create(path, fileSize, FileOutputBuffer::F_executable), in openFile()
/llvm-project-15.0.7/llvm/tools/llvm-pdbutil/
H A Dllvm-pdbutil.cpp1417 FileOutputBuffer::create(OutFileName, SourceStream->getLength())); in exportStream()

12