Lines Matching refs:MemoryBuffer
36 std::unique_ptr<MemoryBuffer> getObject(const Module *M) override { in getObject()
37 const MemoryBuffer* BufferFound = getObjectInternal(M); in getObject()
43 return MemoryBuffer::getMemBufferCopy(BufferFound->getBuffer()); in getObject()
54 const MemoryBuffer* getObjectInternal(const Module* M) { in getObjectInternal()
57 StringMap<const MemoryBuffer *>::iterator it = ObjMap.find(ModuleID); in getObjectInternal()
64 MemoryBuffer *copyBuffer(MemoryBufferRef Buf) { in copyBuffer()
66 std::unique_ptr<MemoryBuffer> NewBuffer = in copyBuffer()
67 MemoryBuffer::getMemBufferCopy(Buf.getBuffer()); in copyBuffer()
68 MemoryBuffer *Ret = NewBuffer.get(); in copyBuffer()
73 StringMap<const MemoryBuffer *> ObjMap;
75 SmallVector<std::unique_ptr<MemoryBuffer>, 2> AllocatedBuffers;
134 const MemoryBuffer *ObjBuffer = Cache->getObjectInternal(SavedModulePointer); in TEST_F()
212 const MemoryBuffer *ObjBuffer = Cache->getObjectInternal(SecondModulePointer); in TEST_F()