Searched refs:BufPtr (Results 1 – 2 of 2) sorted by relevance
70 static inline bool isBitcodeWrapper(const unsigned char *BufPtr, in isBitcodeWrapper() argument74 return BufPtr != BufEnd && in isBitcodeWrapper()75 BufPtr[0] == 0xDE && in isBitcodeWrapper()76 BufPtr[1] == 0xC0 && in isBitcodeWrapper()77 BufPtr[2] == 0x17 && in isBitcodeWrapper()78 BufPtr[3] == 0x0B; in isBitcodeWrapper()84 static inline bool isRawBitcode(const unsigned char *BufPtr, in isRawBitcode() argument88 return BufPtr != BufEnd && in isRawBitcode()89 BufPtr[0] == 'B' && in isRawBitcode()90 BufPtr[1] == 'C' && in isRawBitcode()[all …]
1819 unsigned char *BufPtr = (unsigned char *)Buffer->getBufferStart(); in ParseBitcodeInto() local1820 unsigned char *BufEnd = BufPtr+Buffer->getBufferSize(); in ParseBitcodeInto()1823 if (!isRawBitcode(BufPtr, BufEnd) && !isBitcodeWrapper(BufPtr, BufEnd)) in ParseBitcodeInto()1831 if (isBitcodeWrapper(BufPtr, BufEnd)) in ParseBitcodeInto()1832 if (SkipBitcodeWrapperHeader(BufPtr, BufEnd)) in ParseBitcodeInto()1835 StreamFile.init(BufPtr, BufEnd); in ParseBitcodeInto()1950 unsigned char *BufPtr = (unsigned char *)Buffer->getBufferStart(); in ParseTriple() local1951 unsigned char *BufEnd = BufPtr+Buffer->getBufferSize(); in ParseTriple()1955 if (isBitcodeWrapper(BufPtr, BufEnd)) in ParseTriple()1956 if (SkipBitcodeWrapperHeader(BufPtr, BufEnd)) in ParseTriple()[all …]