Home
last modified time | relevance | path

Searched refs:getBufferStart (Results 1 – 25 of 51) 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()
DFileOutputBufferTest.cpp45 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()
DSourceMgrTest.cpp33 SM.getMemoryBuffer(MainBufferID)->getBufferStart() + Offset); in getLoc()
/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.cpp123 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()
DFormattedStream.cpp69 ComputePosition(getBufferStart(), GetNumBytesInBuffer()); in PadToColumn()
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()
/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.cpp371 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()
DScratchBuffer.cpp74 CurBuffer = const_cast<char*>(Buf.getBufferStart()); in AllocScratchBuffer()
DPTHLexer.cpp451 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/
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.h50 const char *getBufferStart() const { return BufferStart; } in getBufferStart() function
161 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()
68 if (isBitcode((const unsigned char *)Buffer.getBufferStart(), in parseIR()
/external/clang/lib/Frontend/Rewrite/
DInclusionRewriter.cpp204 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/
DInstrProfReader.cpp179 *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()
DSampleProfReader.cpp329 Data = reinterpret_cast<const uint8_t *>(Buffer->getBufferStart()); in readHeader()
351 reinterpret_cast<const uint8_t *>(Buffer.getBufferStart()); in hasFormat()
/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/clang/lib/ARCMigrate/
DFileRemapper.cpp153 newOut.write(mem->getBufferStart(), mem->getBufferSize()); in flushToFile()
184 Out.write(mem->getBufferStart(), mem->getBufferSize()); in overwriteOriginal()
/external/llvm/lib/Object/
DELFObjectFile.cpp28 1ULL << countTrailingZeros(uintptr_t(Obj.getBufferStart())); in createELFObjectFile()
/external/clang/lib/Frontend/
DSerializedDiagnosticReader.cpp29 StreamFile.init((const unsigned char *)(*Buffer)->getBufferStart(), in readDiagnostics()
DFrontendActions.cpp644 const char *cur = Buffer->getBufferStart(); in ExecuteAction()
701 llvm::outs().write((*Buffer)->getBufferStart(), Preamble); in ExecuteAction()
/external/llvm/tools/llvm-lto/
Dllvm-lto.cpp116 Buffer->getBufferStart(), Buffer->getBufferSize(), Options, Error, Path)); in getLocalLTOModule()

123