Home
last modified time | relevance | path

Searched refs:getBufferStart (Results 1 – 25 of 57) sorted by relevance

123

/external/llvm/unittests/Support/
DMemoryBufferTest.cpp57 EXPECT_EQ(MB1->getBufferStart(), MB2->getBufferStart()); in TEST_F()
58 EXPECT_EQ(MB2->getBufferStart(), MB3->getBufferStart()); in TEST_F()
84 const char *BufData = MB.get()->getBufferStart(); in TEST_F()
99 EXPECT_NE(MBC1->getBufferStart(), MBC2->getBufferStart()); in TEST_F()
119 EXPECT_EQ(0, Three->getBufferStart()[0]); in TEST_F()
125 EXPECT_EQ(0, Four->getBufferStart()[0]); in TEST_F()
176 EXPECT_EQ(MB->getBufferStart(), MBR.getBufferStart()); in TEST_F()
DFileOutputBufferTest.cpp47 memcpy(Buffer->getBufferStart(), "AABBCCDDEEFFGGHHIIJJ", 20); in TEST()
69 memcpy(Buffer2->getBufferStart(), "AABBCCDDEEFFGGHHIIJJ", 20); in TEST()
86 memcpy(Buffer->getBufferStart(), "AABBCCDDEEFFGGHHIIJJ", 20); in TEST()
107 memcpy(Buffer->getBufferStart(), "AABBCCDDEEFFGGHHIIJJ", 20); in TEST()
/external/llvm/lib/Support/
DLineIterator.cpp39 CurrentLine(Buffer.getBufferSize() ? Buffer.getBufferStart() : nullptr, in line_iterator()
46 if (SkipBlanks || !isAtLineEnd(Buffer.getBufferStart())) in line_iterator()
55 assert(Pos == Buffer->getBufferStart() || isAtLineEnd(Pos) || *Pos == '\0'); in advance()
DFileUtilities.cpp196 const char *File1Start = F1.getBufferStart(); in DiffFilesWithTolerance()
197 const char *File2Start = F2.getBufferStart(); in DiffFilesWithTolerance()
DMemoryBuffer.cpp124 memcpy(const_cast<char*>(Buf->getBufferStart()), InputData.data(), in getMemBufferCopy()
160 memset(const_cast<char*>(SB->getBufferStart()), 0, Size); in getNewMemBuffer()
377 char *BufPtr = const_cast<char *>(Buf->getBufferStart()); in getOpenFileImpl()
DSourceMgr.cpp68 if (Loc.getPointer() >= Buffers[i].Buffer->getBufferStart() && in FindBufferContainingLoc()
88 const char *BufStart = Buff->getBufferStart(); in getLineAndColumn()
156 const char *BufStart = CurMB->getBufferStart(); in GetMessage()
DFormattedStream.cpp69 ComputePosition(getBufferStart(), GetNumBytesInBuffer()); in PadToColumn()
/external/clang/lib/Lex/
DHeaderMap.cpp86 const char *FileStart = (*FileBuffer)->getBufferStart(); in Create()
128 return *reinterpret_cast<const HMapHeader*>(FileBuffer->getBufferStart()); in getHeader()
139 reinterpret_cast<const HMapBucket*>(FileBuffer->getBufferStart() + in getBucket()
169 return FileBuffer->getBufferStart()+StrTabIdx; in getString()
DPreprocessor.cpp385 const char *Position = Buffer->getBufferStart(); in SetCodeCompletionPoint()
406 if (Position - Buffer->getBufferStart() < SkipMainFilePreamble.first) in SetCodeCompletionPoint()
407 Position = Buffer->getBufferStart() + SkipMainFilePreamble.first; in SetCodeCompletionPoint()
414 CodeCompletionOffset = Position - Buffer->getBufferStart(); in SetCodeCompletionPoint()
419 char *NewBuf = const_cast<char*>(NewBuffer->getBufferStart()); in SetCodeCompletionPoint()
420 char *NewPos = std::copy(Buffer->getBufferStart(), Position, NewBuf); in SetCodeCompletionPoint()
DScratchBuffer.cpp74 CurBuffer = const_cast<char*>(Buf.getBufferStart()); in AllocScratchBuffer()
DPTHLexer.cpp450 const unsigned char *BufBeg = (const unsigned char*)File->getBufferStart(); in Create()
564 (const unsigned char *)Buf->getBufferStart() + in LazilyCreateIdentifierInfo()
612 const unsigned char *BufStart = (const unsigned char *)Buf->getBufferStart(); in CreateLexer()
/external/llvm/include/llvm/Object/
DCOFFImportFile.h42 OS << StringRef(Data.getBufferStart() + sizeof(coff_import_header)); in printSymbolName()
62 Data.getBufferStart()); in getCOFFImportHeader()
/external/llvm/lib/ExecutionEngine/
DGDBRegistrationListener.cpp169 const char *Buffer = DebugObj.getBinary()->getMemoryBufferRef().getBufferStart(); in NotifyObjectEmitted()
172 const char *Key = Object.getMemoryBufferRef().getBufferStart(); in NotifyObjectEmitted()
194 const char *Key = Object.getMemoryBufferRef().getBufferStart(); in NotifyFreeingObject()
/external/llvm/include/llvm/Support/
DMemoryBuffer.h49 const char *getBufferStart() const { return BufferStart; } in getBufferStart() function
163 const char *getBufferStart() const { return Buffer.begin(); } in getBufferStart() function
DFileOutputBuffer.h45 uint8_t *getBufferStart() { in getBufferStart() function
/external/llvm/lib/IRReader/
DIRReader.cpp35 if (isBitcode((const unsigned char *)Buffer->getBufferStart(), in getLazyIRModule()
70 if (isBitcode((const unsigned char *)Buffer.getBufferStart(), in parseIR()
/external/clang/lib/Frontend/Rewrite/
DInclusionRewriter.cpp220 const char *Pos = strchr(FromFile.getBufferStart(), '\n'); in DetectEOL()
223 if (Pos - 1 >= FromFile.getBufferStart() && Pos[-1] == '\r') in DetectEOL()
257 LocalEOL[0] == (FromFile.getBufferStart() + WriteTo)[-1] && in OutputContentUpTo()
258 LocalEOL[1] == (FromFile.getBufferStart() + WriteTo)[0]) in OutputContentUpTo()
261 StringRef TextToWrite(FromFile.getBufferStart() + WriteFrom, in OutputContentUpTo()
/external/llvm/tools/llvm-pdbdump/
Dllvm-pdbdump.cpp158 Addr < uintptr_t(M.getBufferStart())) { in checkOffset()
196 if (auto EC = getObject(SB, M, M.getBufferStart())) in dumpStructure()
243 M.getBufferStart() + BlockMapOffset), in dumpStructure()
277 M.getBufferStart() + DirectoryBlockOffset), in dumpStructure()
370 StringRef(M.getBufferStart() + StreamBlockOffset, BytesToReadInBlock); in dumpStructure()
/external/clang/lib/Rewrite/
DHTMLRewrite.cpp110 const char* C = Buf->getBufferStart(); in EscapeText()
229 const char* FileBeg = Buf->getBufferStart(); in AddLineNumbers()
274 const char* FileStart = Buf->getBufferStart(); in AddHeaderFooterInternalBuiltinCSS()
/external/llvm/lib/ProfileData/
DInstrProfReader.cpp106 StringRef buffer = Buffer.getBufferStart(); in hasFormat()
237 *reinterpret_cast<const uint64_t *>(DataBuffer.getBufferStart()); in hasFormat()
249 DataBuffer->getBufferStart()); in readHeader()
551 endian::read<uint64_t, little, aligned>(DataBuffer.getBufferStart()); in hasFormat()
558 (const unsigned char *)DataBuffer->getBufferStart(); in readHeader()
DSampleProfReader.cpp386 Data = reinterpret_cast<const uint8_t *>(Buffer->getBufferStart()); in readHeader()
420 reinterpret_cast<const uint8_t *>(Buffer.getBufferStart()); in hasFormat()
664 StringRef Magic(reinterpret_cast<const char *>(Buffer.getBufferStart())); in hasFormat()
/external/clang/lib/Frontend/
DPCHContainerOperations.cpp59 StreamFile.init((const unsigned char *)Buffer.getBufferStart(), in ExtractPCH()
/external/llvm/lib/Object/
DELFObjectFile.cpp28 1ULL << countTrailingZeros(uintptr_t(Obj.getBufferStart())); in createELFObjectFile()
/external/clang/lib/ARCMigrate/
DFileRemapper.cpp153 newOut.write(mem->getBufferStart(), mem->getBufferSize()); in flushToFile()
184 Out.write(mem->getBufferStart(), mem->getBufferSize()); in overwriteOriginal()
/external/llvm/tools/sancov/
Dsancov.cc415 reinterpret_cast<const FileHeader *>(Buf->getBufferStart()); in read()
426 readInts<uint64_t>(Buf->getBufferStart() + 8, Buf->getBufferEnd(), in read()
430 readInts<uint32_t>(Buf->getBufferStart() + 8, Buf->getBufferEnd(), in read()

123