Displaying 2 results from an estimated 2 matches for "advancetoposimpl".
2014 Dec 19
2
[LLVMdev] [Patches][RFC] What to do about bitcode streaming.
Hi Rafael,
Would you mind waiting for Derek to come back from vacation to discuss
this? We do use this code and could improve how it's used and tested within
LLVM. Derek is the best person to discuss this, he'll be back in
mid-January.
Thanks,
JF
On Fri, Dec 19, 2014 at 6:41 AM, Rafael EspĂndola <
rafael.espindola at gmail.com> wrote:
>
> > I CC'ed llvmdev to put a
2014 Dec 19
2
[LLVMdev] [Patches][RFC] What to do about bitcode streaming.
...ss DataStreamer {
-public:
- /// Fetch bytes [start-end) from the stream, and write them to the
- /// buffer pointed to by buf. Returns the number of bytes actually
written.
- virtual size_t GetBytes(unsigned char *buf, size_t len) = 0;
+ uint64_t Size;
+ const uint8_t *Data;
+
+ virtual bool advanceToPosImpl(uint64_t Pos) = 0;
+public:
+ const uint8_t *getPointer(uint64_t Pos, unsigned Size);
+ DataStreamer();
virtual ~DataStreamer();
-};
-DataStreamer *getDataFileStreamer(const std::string &Filename,
- std::string *Err);
+ uint64_t getSize() const { return...