LLVM: include/llvm/XRay/FDRRecordProducer.h Source File (original) (raw)

Go to the documentation of this file.

1

2

3

4

5

6

7

8#ifndef LLVM_XRAY_FDRRECORDPRODUCER_H

9#define LLVM_XRAY_FDRRECORDPRODUCER_H

10

15#include

16

18

26

31 uint32_t CurrentBufferBytes = 0;

32

33

34

36

37public:

40 : Header(FH), E(DE), OffsetPtr(OP) {}

41

42

43

45};

46

47}

48

49#endif

Tagged union holding either a T or a Error.

FileBasedRecordProducer(const XRayFileHeader &FH, DataExtractor &DE, uint64_t &OP)

Definition FDRRecordProducer.h:38

Definition FDRRecordProducer.h:19

virtual Expected< std::unique_ptr< Record > > produce()=0

All producer implementations must yield either an Error or a non-nullptr unique_ptr.

virtual ~RecordProducer()=default