reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

include/llvm/Support/MemoryBuffer.h
  170     return const_cast<char *>(MemoryBuffer::getBufferStart());
  232     return const_cast<char *>(MemoryBuffer::getBufferStart());
lib/CodeGen/MIRParser/MIParser.cpp
  540   if (Loc >= Buffer.getBufferStart() && Loc <= Buffer.getBufferEnd()) {
lib/ExecutionEngine/RuntimeDyld/RuntimeDyldChecker.cpp
  707   const char *LineStart = MemBuf->getBufferStart();
lib/FuzzMutate/FuzzerCLI.cpp
  163     TestOne(reinterpret_cast<const uint8_t *>(Buf->getBufferStart()),
lib/IR/Core.cpp
 4044   return unwrap(MemBuf)->getBufferStart();
lib/IRReader/IRReader.cpp
   35   if (isBitcode((const unsigned char *)Buffer->getBufferStart(),
lib/ProfileData/InstrProfReader.cpp
  144   StringRef buffer = Buffer.getBufferStart();
  299     *reinterpret_cast<const uint64_t *>(DataBuffer.getBufferStart());
  311       DataBuffer->getBufferStart());
  738       endian::read<uint64_t, little, aligned>(DataBuffer.getBufferStart());
  801       (const unsigned char *)DataBuffer->getBufferStart();
lib/ProfileData/SampleProfReader.cpp
  606       reinterpret_cast<const uint8_t *>(Buffer->getBufferStart());
  666             reinterpret_cast<const uint8_t *>(Buffer->getBufferStart()) +
  762       reinterpret_cast<const uint8_t *>(Buffer->getBufferStart());
  832   Data = reinterpret_cast<const uint8_t *>(Buffer->getBufferStart());
  860       reinterpret_cast<const uint8_t *>(Buffer->getBufferStart()) +
  950       reinterpret_cast<const uint8_t *>(Buffer.getBufferStart());
  957       reinterpret_cast<const uint8_t *>(Buffer.getBufferStart());
  964       reinterpret_cast<const uint8_t *>(Buffer.getBufferStart());
 1208   StringRef Magic(reinterpret_cast<const char *>(Buffer.getBufferStart()));
lib/Support/CodeGenCoverage.cpp
   52   const char *CurPtr = Buffer.getBufferStart();
lib/Support/CommandLine.cpp
 1049   StringRef Str(MemBuf.getBufferStart(), MemBuf.getBufferSize());
 1052   ArrayRef<char> BufRef(MemBuf.getBufferStart(), MemBuf.getBufferEnd());
lib/Support/FileCheck.cpp
  903   for (const char *Ptr = MB.getBufferStart(), *End = MB.getBufferEnd();
lib/Support/FileUtilities.cpp
  202   const char *File1Start = F1.getBufferStart();
  203   const char *File2Start = F2.getBufferStart();
lib/Support/LineIterator.cpp
   38       CurrentLine(Buffer.getBufferSize() ? Buffer.getBufferStart() : nullptr,
   45     if (SkipBlanks || !isAtLineEnd(Buffer.getBufferStart()))
   54   assert(Pos == Buffer->getBufferStart() || isAtLineEnd(Pos) || *Pos == '\0');
lib/Support/SourceMgr.cpp
   63     if (Loc.getPointer() >= Buffers[i].Buffer->getBufferStart() &&
   92   const char *BufStart = Buffer->getBufferStart();
  144   const char *BufStart = SB.Buffer->getBufferStart();
  183     const char *BufStart = CurMB->getBufferStart();
tools/clang/lib/ARCMigrate/FileRemapper.cpp
  152       newOut.write(mem->getBufferStart(), mem->getBufferSize());
  185     Out.write(mem->getBufferStart(), mem->getBufferSize());
tools/clang/lib/Basic/SourceManager.cpp
 1146   return Buffer->getBufferStart() + (CharDataInvalid? 0 : LocInfo.second);
 1168   const char *Buf = MemBuf->getBufferStart();
 1251   const unsigned char *Buf = (const unsigned char *)Buffer->getBufferStart();
 1679   const char *Buf = Buffer->getBufferStart() + FilePos;
tools/clang/lib/CodeGen/CodeGenAction.cpp
  418   unsigned Offset = D.getLoc().getPointer() - LBuf->getBufferStart();
tools/clang/lib/Frontend/FrontendActions.cpp
  796     const char *cur = Buffer->getBufferStart();
  868     llvm::outs().write((*Buffer)->getBufferStart(), Preamble);
tools/clang/lib/Frontend/PrecompiledPreamble.cpp
  265   std::vector<char> PreambleBytes(MainFileBuffer->getBufferStart(),
  266                                   MainFileBuffer->getBufferStart() +
tools/clang/lib/Frontend/Rewrite/InclusionRewriter.cpp
  270   const char *Pos = strchr(FromFile.getBufferStart(), '\n');
  273   if (Pos - 1 >= FromFile.getBufferStart() && Pos[-1] == '\r')
  307       LocalEOL[0] == (FromFile.getBufferStart() + WriteTo)[-1] &&
  308       LocalEOL[1] == (FromFile.getBufferStart() + WriteTo)[0])
  311   StringRef TextToWrite(FromFile.getBufferStart() + WriteFrom,
tools/clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp
  705   MainFileStart = MainBuf->getBufferStart();
tools/clang/lib/Frontend/Rewrite/RewriteObjC.cpp
  634   MainFileStart = MainBuf->getBufferStart();
tools/clang/lib/Lex/HeaderMap.cpp
   69   const char *FileStart = File.getBufferStart();
  122   return *reinterpret_cast<const HMapHeader*>(FileBuffer->getBufferStart());
  137     reinterpret_cast<const HMapBucket*>(FileBuffer->getBufferStart() +
  156   const char *Data = FileBuffer->getBufferStart() + StrTabIdx;
tools/clang/lib/Lex/Lexer.cpp
  137   InitLexer(InputFile->getBufferStart(), InputFile->getBufferStart(),
  137   InitLexer(InputFile->getBufferStart(), InputFile->getBufferStart(),
  160     : Lexer(SM.getLocForStartOfFile(FID), langOpts, FromFile->getBufferStart(),
  161             FromFile->getBufferStart(), FromFile->getBufferEnd()) {}
tools/clang/lib/Lex/ModuleMap.cpp
 2990           Buffer->getBufferStart(),
 2991           Buffer->getBufferStart() + (Offset ? *Offset : 0),
tools/clang/lib/Lex/Preprocessor.cpp
  402   const char *Position = Buffer->getBufferStart();
  423     if (Position - Buffer->getBufferStart() < SkipMainFilePreamble.first)
  424       Position = Buffer->getBufferStart() + SkipMainFilePreamble.first;
  431   CodeCompletionOffset = Position - Buffer->getBufferStart();
  436   char *NewPos = std::copy(Buffer->getBufferStart(), Position, NewBuf);
tools/clang/lib/Parse/ParseStmtAsm.cpp
  174   unsigned Offset = SMLoc.getPointer() - LBuf->getBufferStart();
tools/clang/lib/Rewrite/HTMLRewrite.cpp
  111   const char* C = Buf->getBufferStart();
  230   const char* FileBeg = Buf->getBufferStart();
  278   const char* FileStart = Buf->getBufferStart();
tools/clang/lib/Serialization/ASTWriter.cpp
 2373         StringRef Blob(Buffer->getBufferStart(), Buffer->getBufferSize() + 1);
tools/clang/lib/StaticAnalyzer/Checkers/LocalizationChecker.cpp
 1147   Lexer TheLexer(SL, LangOptions(), BF->getBufferStart(),
 1148                  BF->getBufferStart() + SLInfo.second, BF->getBufferEnd());
tools/clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp
  754   const char* FileStart = Buf->getBufferStart();
tools/clang/lib/StaticAnalyzer/Core/IssueHash.cpp
  156               Buffer->getBufferStart(), BufferPos, Buffer->getBufferEnd());
tools/clang/lib/StaticAnalyzer/Core/PlistDiagnostics.cpp
 1061   const char *MacroNameTokenPos = MB->getBufferStart() + LocInfo.second;
 1064                  MB->getBufferStart(), MacroNameTokenPos, MB->getBufferEnd());
tools/clang/lib/Tooling/DependencyScanning/DependencyScanningFilesystem.cpp
   47     Result.Contents.append(Buffer->getBufferStart(), Buffer->getBufferEnd());
tools/clang/tools/clang-import-test/clang-import-test.cpp
  108     assert(LocData >= Buffer->getBufferStart() &&
  113     assert(LineBegin >= Buffer->getBufferStart());
tools/clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp
  362     OS.write(Input.getBufferStart(), Input.getBufferSize());
  792         OutputFile.write(Input.getBufferStart(), Input.getBufferSize());
tools/clang/tools/clang-offload-wrapper/ClangOffloadWrapper.cpp
  348     Images.emplace_back(Buf->getBufferStart(), Buf->getBufferSize());
tools/clang/tools/extra/clang-tidy/bugprone/SuspiciousSemicolonCheck.cpp
   58               Buffer->getBufferStart(), SM.getCharacterData(LocEnd) + 1,
tools/clang/tools/extra/clang-tidy/misc/StaticAssertCheck.cpp
  156               Buffer->getBufferStart(), BufferPos, Buffer->getBufferEnd());
tools/clang/tools/extra/modularize/PreprocessorTracker.cpp
  317   const char *Buffer = MemBuffer->getBufferStart();
  342   const char *Buffer = MemBuffer->getBufferStart();
tools/clang/tools/libclang/CIndex.cpp
 4277   return buf->getBufferStart();
tools/dsymutil/SymbolMap.cpp
  127   StringRef Data(MemBuf.getBufferStart(),
  128                  MemBuf.getBufferEnd() - MemBuf.getBufferStart());
tools/lld/lib/Core/Reader.cpp
   38   StringRef content(mb->getBufferStart(), mb->getBufferSize());
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryReader.cpp
  209   const char *start = mb->getBufferStart();
tools/lld/lib/ReaderWriter/MachO/SectCreateFile.h
   49         reinterpret_cast<const uint8_t*>(_content->getBufferStart());
tools/lldb/source/Plugins/Process/POSIX/NativeProcessELF.cpp
   21     DataExtractor auxv_data(buffer_or_error.get()->getBufferStart(),
tools/lldb/unittests/Expression/DWARFExpressionTest.cpp
   87       memcpy(m_buffer.data() + file_offset, membuf->getBufferStart(),
tools/llvm-cvtres/llvm-cvtres.cpp
  204   std::copy(OutputBuffer->getBufferStart(), OutputBuffer->getBufferEnd(),
tools/llvm-lto/llvm-lto.cpp
  322       std::move(Context), Buffer->getBufferStart(), Buffer->getBufferSize(),
  390         Buffer->getBufferStart(), Buffer->getBufferSize(), Filename.c_str(),
tools/llvm-mt/llvm-mt.cpp
  155   std::copy(OutputBuffer->getBufferStart(), OutputBuffer->getBufferEnd(),
tools/llvm-objcopy/COFF/COFFObjcopy.cpp
  186         makeArrayRef(reinterpret_cast<const uint8_t *>(Buf->getBufferStart()),
tools/llvm-objcopy/ELF/ELFObjcopy.cpp
  701         reinterpret_cast<const uint8_t *>(Buf->getBufferStart()),
tools/llvm-objcopy/ELF/Object.cpp
 1149       reinterpret_cast<const uint8_t *>(MemBuf->getBufferStart()),
tools/llvm-objcopy/llvm-objcopy.cpp
  125     std::copy(Member.Buf->getBufferStart(), Member.Buf->getBufferEnd(),
tools/llvm-objdump/llvm-objdump.cpp
  590   const char *BufferStart = Buffer->getBufferStart(),
tools/lto/lto.cpp
  429   return CG->NativeObjectFile->getBufferStart();
  445   return CG->NativeObjectFile->getBufferStart();
  517   return LTOObjectBuffer{MemBuffer->getBufferStart(),
tools/sancov/sancov.cpp
  241       reinterpret_cast<const FileHeader *>(Buf->getBufferStart());
  252     readInts<uint64_t>(Buf->getBufferStart() + 8, Buf->getBufferEnd(),
  256     readInts<uint32_t>(Buf->getBufferStart() + 8, Buf->getBufferEnd(),
  855       reinterpret_cast<const FileHeader *>(Buf->getBufferStart());
tools/sanstats/sanstats.cpp
  135   const char *Begin = MB->getBufferStart(), *End = MB->getBufferEnd();
unittests/Support/MemoryBufferTest.cpp
   87   EXPECT_EQ(MB1->getBufferStart(), MB2->getBufferStart());
   87   EXPECT_EQ(MB1->getBufferStart(), MB2->getBufferStart());
   88   EXPECT_EQ(MB2->getBufferStart(), MB3->getBufferStart());
   88   EXPECT_EQ(MB2->getBufferStart(), MB3->getBufferStart());
  146   const char *BufData = MB.get()->getBufferStart();
  161   EXPECT_NE(MBC1->getBufferStart(), MBC2->getBufferStart());
  161   EXPECT_NE(MBC1->getBufferStart(), MBC2->getBufferStart());
  213     EXPECT_EQ(0, Three->getBufferStart()[0]);
  219     EXPECT_EQ(0, Four->getBufferStart()[0]);
  271   EXPECT_EQ(MB->getBufferStart(), MBR.getBufferStart());
unittests/Support/SourceMgrTest.cpp
   32         SM.getMemoryBuffer(MainBufferID)->getBufferStart() + Offset);
unittests/Support/TarWriterTest.cpp
   58   std::vector<uint8_t> Buf((const uint8_t *)MB->getBufferStart(),