Lines Matching refs:MemoryBuffer
73 ErrorOr<std::unique_ptr<MemoryBuffer>> BufferOrErr = in isBitcodeFile()
74 MemoryBuffer::getFile(Path); in isBitcodeFile()
83 bool LTOModule::isBitcodeForTarget(MemoryBuffer *Buffer, in isBitcodeForTarget()
94 std::string LTOModule::getProducerString(MemoryBuffer *Buffer) { in getProducerString()
106 ErrorOr<std::unique_ptr<MemoryBuffer>> BufferOrErr = in createFromFile()
107 MemoryBuffer::getFile(path); in createFromFile()
110 std::unique_ptr<MemoryBuffer> Buffer = std::move(BufferOrErr.get()); in createFromFile()
124 ErrorOr<std::unique_ptr<MemoryBuffer>> BufferOrErr = in createFromOpenFileSlice()
125 MemoryBuffer::getOpenFileSlice(fd, path, map_size, offset); in createFromOpenFileSlice()
128 std::unique_ptr<MemoryBuffer> Buffer = std::move(BufferOrErr.get()); in createFromOpenFileSlice()
173 std::unique_ptr<MemoryBuffer> LightweightBuf = in parseBitcodeFileImpl()
174 MemoryBuffer::getMemBuffer(*MBOrErr, false); in parseBitcodeFileImpl()
246 std::unique_ptr<MemoryBuffer>
249 return MemoryBuffer::getMemBuffer(StringRef(startPtr, length), name, false); in makeBuffer()