Lines Matching refs:buffer
154 SSPBufferSize("stack-protector-buffer-size", cl::init(8),
155 cl::desc("Lower bound for a buffer to be considered for "
178 MemoryBuffer *buffer = makeBuffer(mem, length);
179 if (!buffer)
181 return isTargetMatch(buffer, triplePrefix);
186 OwningPtr<MemoryBuffer> buffer;
187 if (MemoryBuffer::getFile(path, buffer))
189 return isTargetMatch(buffer.take(), triplePrefix);
192 /// isTargetMatch - Returns 'true' if the memory buffer is for the specified
194 bool LTOModule::isTargetMatch(MemoryBuffer *buffer, const char *triplePrefix) {
195 std::string Triple = getBitcodeTargetTriple(buffer, getGlobalContext());
196 delete buffer;
201 /// the buffer.
203 OwningPtr<MemoryBuffer> buffer;
204 if (error_code ec = MemoryBuffer::getFile(path, buffer)) {
208 return makeLTOModule(buffer.take(), errMsg);
221 OwningPtr<MemoryBuffer> buffer;
222 if (error_code ec = MemoryBuffer::getOpenFile(fd, path, buffer, file_size,
227 return makeLTOModule(buffer.take(), errMsg);
232 OwningPtr<MemoryBuffer> buffer(makeBuffer(mem, length));
233 if (!buffer)
235 return makeLTOModule(buffer.take(), errMsg);
263 LTOModule *LTOModule::makeLTOModule(MemoryBuffer *buffer,
273 // parse bitcode buffer
274 OwningPtr<Module> m(getLazyBitcodeModule(buffer, getGlobalContext(),
277 delete buffer;
485 SmallString<64> Buffer;
486 _mangler.getNameWithPrefix(Buffer, def, false);
526 StringSet::value_type &entry = _defines.GetOrCreateValue(Buffer);
823 MemoryBuffer *Buffer = MemoryBuffer::getMemBuffer(inlineAsm);
825 SrcMgr.AddNewSourceBuffer(Buffer, SMLoc());