/external/llvm/unittests/Support/ |
D | MemoryBufferTest.cpp | 57 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()
|
D | FileOutputBufferTest.cpp | 47 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/ |
D | LineIterator.cpp | 39 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()
|
D | FileUtilities.cpp | 196 const char *File1Start = F1.getBufferStart(); in DiffFilesWithTolerance() 197 const char *File2Start = F2.getBufferStart(); in DiffFilesWithTolerance()
|
D | MemoryBuffer.cpp | 124 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()
|
D | SourceMgr.cpp | 68 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()
|
D | FormattedStream.cpp | 69 ComputePosition(getBufferStart(), GetNumBytesInBuffer()); in PadToColumn()
|
/external/clang/lib/Lex/ |
D | HeaderMap.cpp | 86 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()
|
D | Preprocessor.cpp | 385 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()
|
D | ScratchBuffer.cpp | 74 CurBuffer = const_cast<char*>(Buf.getBufferStart()); in AllocScratchBuffer()
|
D | PTHLexer.cpp | 450 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/ |
D | COFFImportFile.h | 42 OS << StringRef(Data.getBufferStart() + sizeof(coff_import_header)); in printSymbolName() 62 Data.getBufferStart()); in getCOFFImportHeader()
|
/external/llvm/lib/ExecutionEngine/ |
D | GDBRegistrationListener.cpp | 169 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/ |
D | MemoryBuffer.h | 49 const char *getBufferStart() const { return BufferStart; } in getBufferStart() function 163 const char *getBufferStart() const { return Buffer.begin(); } in getBufferStart() function
|
D | FileOutputBuffer.h | 45 uint8_t *getBufferStart() { in getBufferStart() function
|
/external/llvm/lib/IRReader/ |
D | IRReader.cpp | 35 if (isBitcode((const unsigned char *)Buffer->getBufferStart(), in getLazyIRModule() 70 if (isBitcode((const unsigned char *)Buffer.getBufferStart(), in parseIR()
|
/external/clang/lib/Frontend/Rewrite/ |
D | InclusionRewriter.cpp | 220 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/ |
D | llvm-pdbdump.cpp | 158 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/ |
D | HTMLRewrite.cpp | 110 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/ |
D | InstrProfReader.cpp | 106 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()
|
D | SampleProfReader.cpp | 386 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/ |
D | PCHContainerOperations.cpp | 59 StreamFile.init((const unsigned char *)Buffer.getBufferStart(), in ExtractPCH()
|
/external/llvm/lib/Object/ |
D | ELFObjectFile.cpp | 28 1ULL << countTrailingZeros(uintptr_t(Obj.getBufferStart())); in createELFObjectFile()
|
/external/clang/lib/ARCMigrate/ |
D | FileRemapper.cpp | 153 newOut.write(mem->getBufferStart(), mem->getBufferSize()); in flushToFile() 184 Out.write(mem->getBufferStart(), mem->getBufferSize()); in overwriteOriginal()
|
/external/llvm/tools/sancov/ |
D | sancov.cc | 415 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()
|