/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()
|
D | FileOutputBufferTest.cpp | 45 memcpy(Buffer->getBufferStart(), "AABBCCDDEEFFGGHHIIJJ", 20); in TEST() 65 memcpy(Buffer2->getBufferStart(), "AABBCCDDEEFFGGHHIIJJ", 20); in TEST() 80 memcpy(Buffer->getBufferStart(), "AABBCCDDEEFFGGHHIIJJ", 20); in TEST() 100 memcpy(Buffer->getBufferStart(), "AABBCCDDEEFFGGHHIIJJ", 20); in TEST()
|
D | SourceMgrTest.cpp | 33 SM.getMemoryBuffer(MainBufferID)->getBufferStart() + Offset); in getLoc()
|
/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 | 123 memcpy(const_cast<char*>(Buf->getBufferStart()), InputData.data(), in getMemBufferCopy() 159 memset(const_cast<char*>(SB->getBufferStart()), 0, Size); in getNewMemBuffer() 375 char *BufPtr = const_cast<char *>(Buf->getBufferStart()); in getOpenFileImpl()
|
D | FormattedStream.cpp | 69 ComputePosition(getBufferStart(), GetNumBytesInBuffer()); in PadToColumn()
|
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()
|
/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 | 371 const char *Position = Buffer->getBufferStart(); in SetCodeCompletionPoint() 392 if (Position - Buffer->getBufferStart() < SkipMainFilePreamble.first) in SetCodeCompletionPoint() 393 Position = Buffer->getBufferStart() + SkipMainFilePreamble.first; in SetCodeCompletionPoint() 400 CodeCompletionOffset = Position - Buffer->getBufferStart(); in SetCodeCompletionPoint() 405 char *NewBuf = const_cast<char*>(NewBuffer->getBufferStart()); in SetCodeCompletionPoint() 406 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 | 451 const unsigned char *BufBeg = (const unsigned char*)File->getBufferStart(); in Create() 565 (const unsigned char *)Buf->getBufferStart() + in LazilyCreateIdentifierInfo() 613 const unsigned char *BufStart = (const unsigned char *)Buf->getBufferStart(); in CreateLexer()
|
/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 | 50 const char *getBufferStart() const { return BufferStart; } in getBufferStart() function 161 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() 68 if (isBitcode((const unsigned char *)Buffer.getBufferStart(), in parseIR()
|
/external/clang/lib/Frontend/Rewrite/ |
D | InclusionRewriter.cpp | 204 const char *Pos = strchr(FromFile.getBufferStart(), '\n'); in DetectEOL() 207 if (Pos - 1 >= FromFile.getBufferStart() && Pos[-1] == '\r') in DetectEOL() 241 LocalEOL[0] == (FromFile.getBufferStart() + WriteTo)[-1] && in OutputContentUpTo() 242 LocalEOL[1] == (FromFile.getBufferStart() + WriteTo)[0]) in OutputContentUpTo() 245 StringRef TextToWrite(FromFile.getBufferStart() + WriteFrom, in OutputContentUpTo()
|
/external/llvm/lib/ProfileData/ |
D | InstrProfReader.cpp | 179 *reinterpret_cast<const uint64_t *>(DataBuffer.getBufferStart()); in hasFormat() 191 reinterpret_cast<const RawHeader *>(DataBuffer->getBufferStart()); in readHeader() 311 endian::read<uint64_t, little, aligned>(DataBuffer.getBufferStart()); in hasFormat() 317 (const unsigned char *)DataBuffer->getBufferStart(); in readHeader()
|
D | SampleProfReader.cpp | 329 Data = reinterpret_cast<const uint8_t *>(Buffer->getBufferStart()); in readHeader() 351 reinterpret_cast<const uint8_t *>(Buffer.getBufferStart()); in hasFormat()
|
/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/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/lib/Object/ |
D | ELFObjectFile.cpp | 28 1ULL << countTrailingZeros(uintptr_t(Obj.getBufferStart())); in createELFObjectFile()
|
/external/clang/lib/Frontend/ |
D | SerializedDiagnosticReader.cpp | 29 StreamFile.init((const unsigned char *)(*Buffer)->getBufferStart(), in readDiagnostics()
|
D | FrontendActions.cpp | 644 const char *cur = Buffer->getBufferStart(); in ExecuteAction() 701 llvm::outs().write((*Buffer)->getBufferStart(), Preamble); in ExecuteAction()
|
/external/llvm/tools/llvm-lto/ |
D | llvm-lto.cpp | 116 Buffer->getBufferStart(), Buffer->getBufferSize(), Options, Error, Path)); in getLocalLTOModule()
|