Home
last modified time | relevance | path

Searched refs:FileBuffer (Results 1 – 15 of 15) sorted by relevance

/external/clang/lib/Lex/
DHeaderMap.cpp56 auto FileBuffer = FM.getBufferForFile(FE); in Create() local
57 if (!FileBuffer || !*FileBuffer) in Create()
60 if (!checkHeader(**FileBuffer, NeedsByteSwap)) in Create()
62 return new HeaderMap(std::move(*FileBuffer), NeedsByteSwap); in Create()
110 return FileBuffer->getBufferIdentifier(); in getFileName()
122 return *reinterpret_cast<const HMapHeader*>(FileBuffer->getBufferStart()); in getHeader()
129 assert(FileBuffer->getBufferSize() >= in getBucket()
137 reinterpret_cast<const HMapBucket*>(FileBuffer->getBufferStart() + in getBucket()
153 if (StrTabIdx >= FileBuffer->getBufferSize()) in getString()
156 const char *Data = FileBuffer->getBufferStart() + StrTabIdx; in getString()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/
DBinaryByteStream.h216 FileBuffer(std::move(Buffer)) {} in StreamImpl()
219 if (FileBuffer->commit()) in commit()
226 uint8_t *getBufferStart() const { return FileBuffer->getBufferStart(); } in getBufferStart()
229 uint8_t *getBufferEnd() const { return FileBuffer->getBufferEnd(); } in getBufferEnd()
232 std::unique_ptr<FileOutputBuffer> FileBuffer;
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-mt/
Dllvm-mt.cpp155 std::unique_ptr<FileOutputBuffer> FileBuffer = std::move(*FileOrErr); in main() local
157 FileBuffer->getBufferStart()); in main()
158 error(FileBuffer->commit()); in main()
/external/clang/include/clang/Lex/
DHeaderMap.h32 std::unique_ptr<const llvm::MemoryBuffer> FileBuffer; variable
37 : FileBuffer(std::move(File)), NeedsBSwap(NeedsBSwap) {} in HeaderMapImpl()
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/DebugInfo/DWARF/
DDWARFDebugInfoTest.cpp228 MemoryBufferRef FileBuffer(FileBytes, "dwarf"); in TestAllForms() local
229 auto Obj = object::ObjectFile::createObjectFile(FileBuffer); in TestAllForms()
491 MemoryBufferRef FileBuffer(FileBytes, "dwarf"); in TestChildren() local
492 auto Obj = object::ObjectFile::createObjectFile(FileBuffer); in TestChildren()
667 MemoryBufferRef FileBuffer(FileBytes, "dwarf"); in TestReferences() local
668 auto Obj = object::ObjectFile::createObjectFile(FileBuffer); in TestReferences()
875 MemoryBufferRef FileBuffer(FileBytes, "dwarf"); in TestAddresses() local
876 auto Obj = object::ObjectFile::createObjectFile(FileBuffer); in TestAddresses()
1050 MemoryBufferRef FileBuffer(DG->generate(), "dwarf"); in TEST() local
1051 auto Obj = object::ObjectFile::createObjectFile(FileBuffer); in TEST()
[all …]
DDWARFDebugLineTest.cpp62 MemoryBufferRef FileBuffer(FileBytes, "dwarf"); in createContext() local
63 auto Obj = object::ObjectFile::createObjectFile(FileBuffer); in createContext()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-cvtres/
Dllvm-cvtres.cpp199 std::unique_ptr<FileOutputBuffer> FileBuffer = std::move(*FileOrErr); in main() local
201 FileBuffer->getBufferStart()); in main()
202 error(FileBuffer->commit()); in main()
/external/clang/unittests/Tooling/
DRewriterTestContext.h110 auto FileBuffer = Files.getBufferForFile(Path); in getFileContentFromDisk() local
111 return (*FileBuffer)->getBuffer(); in getFileContentFromDisk()
DRefactoringTest.cpp298 auto FileBuffer = Context.Files.getBufferForFile(Path); in getFileContentFromDisk() local
299 return (*FileBuffer)->getBuffer(); in getFileContentFromDisk()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/BinaryFormat/
DMagic.cpp213 std::unique_ptr<MemoryBuffer> FileBuffer = std::move(*FileOrError); in identify_magic() local
214 Result = identify_magic(FileBuffer->getBuffer()); in identify_magic()
/external/llvm/tools/llvm-pdbdump/
Dllvm-pdbdump.cpp78 FileBuffer(std::move(Buffer)) {} in FileBufferByteStream()
81 if (FileBuffer->commit()) in commit()
87 std::unique_ptr<FileOutputBuffer> FileBuffer; member in __anon45bd85430111::FileBufferByteStream
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-objcopy/
Dllvm-objcopy.cpp235 FileBuffer FB(File); in SplitDWOToFile()
497 FileBuffer FB(Member.MemberName); in deepWriteArchive()
547 FileBuffer FB(Config.OutputFilename); in ExecuteElfObjcopy()
DObject.h154 class FileBuffer : public Buffer {
162 explicit FileBuffer(StringRef FileName) : Buffer(FileName) {} in FileBuffer() function
DObject.cpp36 void FileBuffer::allocate(size_t Size) { in allocate()
45 Error FileBuffer::commit() { return Buf->commit(); } in commit()
47 uint8_t *FileBuffer::getBufferStart() { in getBufferStart()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-objdump/
Dllvm-objdump.cpp956 auto FileBuffer = SourceCache.find(LineInfo.FileName); in printSourceLine() local
957 if (FileBuffer != SourceCache.end()) { in printSourceLine()