isBitcode - Return true if the given bytes are the magic bytes for LLVM IR bitcode, either with or without a wrapper.
| 216 | /// isBitcode - Return true if the given bytes are the magic bytes for |
| 217 | /// LLVM IR bitcode, either with or without a wrapper. |
| 218 | inline bool isBitcode(const unsigned char *BufPtr, |
| 219 | const unsigned char *BufEnd) { |
| 220 | return isBitcodeWrapper(BufPtr, BufEnd) || |
| 221 | isRawBitcode(BufPtr, BufEnd); |
| 222 | } |
| 223 | |
| 224 | /// SkipBitcodeWrapperHeader - Some systems wrap bc files with a special |
| 225 | /// header for padding or other reasons. The format of this header is: |
no test coverage detected