Displaying 2 results from an estimated 2 matches for "bitcodestart".
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.
....
// The magic number is 0x0B17C0DE stored in little endian.
if (isBitcodeWrapper(BufPtr, BufEnd))
if (SkipBitcodeWrapperHeader(BufPtr, 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 -...