| 102 | } // end anonymous namespace |
| 103 | |
| 104 | static Error error(const Twine &Message) { |
| 105 | return make_error<StringError>( |
| 106 | Message, make_error_code(BitcodeError::CorruptedBitcode)); |
| 107 | } |
| 108 | |
| 109 | /// Helper to read the header common to all bitcode files. |
| 110 | static bool hasValidBitcodeHeader(BitstreamCursor &Stream) { |
no test coverage detected