Home | History | Annotate | Download | only in IR

Lines Matching refs:Buffer

29 /// readGCNO - Read GCNO buffer.
30 bool GCOVFile::readGCNO(GCOVBuffer &Buffer) {
31 if (!Buffer.readGCNOFormat()) return false;
32 if (!Buffer.readGCOVVersion(Version)) return false;
34 if (!Buffer.readInt(Checksum)) return false;
36 if (!Buffer.readFunctionTag()) break;
38 if (!GFun->readGCNO(Buffer, Version))
47 /// readGCDA - Read GCDA buffer. It is required that readGCDA() can only be
49 bool GCOVFile::readGCDA(GCOVBuffer &Buffer) {
51 if (!Buffer.readGCDAFormat()) return false;
53 if (!Buffer.readGCOVVersion(GCDAVersion)) return false;
60 if (!Buffer.readInt(GCDAChecksum)) return false;
67 if (!Buffer.readFunctionTag()) {
71 if (!Functions[i]->readGCDA(Buffer, Version))
74 if (Buffer.readObjectTag()) {
77 if (!Buffer.readInt(Length)) return false;
78 if (!Buffer.readInt(Dummy)) return false; // checksum
79 if (!Buffer.readInt(Dummy)) return false; // num
80 if (!Buffer.readInt(RunCount)) return false;
81 Buffer.advanceCursor(Length-3);
83 while (Buffer.readProgramTag()) {
85 if (!Buffer.readInt(Length)) return false;
86 Buffer.advanceCursor(Length);
111 /// readGCNO - Read a function from the GCNO buffer. Return false if an error
213 /// readGCDA - Read a function from the GCDA buffer. Return false if an error
437 std::unique_ptr<MemoryBuffer> Buffer;
447 Buffer = std::move(BufferOrErr.get());
448 Remaining = Buffer->getBuffer();