Displaying 2 results from an estimated 2 matches for "dropleadingbyt".
Did you mean:
dropleadingbytes
2014 Dec 19
2
[LLVMdev] [Patches][RFC] What to do about bitcode streaming.
...r, BufEnd, true))
return Error(BitcodeError::InvalidBitcodeWrapperHeader);
//...
- if (isBitcodeWrapper(buf, buf + 4)) {
- const unsigned char *bitcodeStart = buf;
- const unsigned char *bitcodeEnd = buf + 16;
- SkipBitcodeWrapperHeader(bitcodeStart, bitcodeEnd, false);
- Bytes.dropLeadingBytes(bitcodeStart - buf);
- Bytes.setKnownObjectSize(bitcodeEnd - bitcodeStart);
- }
+ uint64_t Skip = BufPtr - OrigBufPtr;
+ uint64_t Size = BufEnd - BufPtr + Skip;
+ StreamFile->setSize(Size);
+ Stream.JumpToBit(Skip * 8);
Not quite clear to me that this is the same. Do we have a test of...
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