| OLD | NEW |
| 1 //===- NaClBitcodeTextReader.cpp - Read texual bitcode record list --------===// | 1 //===- NaClBitcodeTextReader.cpp - Read texual bitcode record list --------===// |
| 2 // | 2 // |
| 3 // The LLVM Compiler Infrastructure | 3 // The LLVM Compiler Infrastructure |
| 4 // | 4 // |
| 5 // This file is distributed under the University of Illinois Open Source | 5 // This file is distributed under the University of Illinois Open Source |
| 6 // License. See LICENSE.TXT for details. | 6 // License. See LICENSE.TXT for details. |
| 7 // | 7 // |
| 8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// |
| 9 // | 9 // |
| 10 // Implements bitcode reader from textual form. | 10 // Implements bitcode reader from textual form. |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 SmallVector<char, 1024> Buffer; | 280 SmallVector<char, 1024> Buffer; |
| 281 | 281 |
| 282 // Fill Buffer with corresponding bitcode records from Filename. | 282 // Fill Buffer with corresponding bitcode records from Filename. |
| 283 if (std::error_code EC = | 283 if (std::error_code EC = |
| 284 readNaClRecordTextAndBuildBitcode(Filename, Buffer, Verbose)) | 284 readNaClRecordTextAndBuildBitcode(Filename, Buffer, Verbose)) |
| 285 return EC; | 285 return EC; |
| 286 | 286 |
| 287 // Parse buffer as ordinary binary bitcode file. | 287 // Parse buffer as ordinary binary bitcode file. |
| 288 StringRef BitcodeBuffer(Buffer.data(), Buffer.size()); | 288 StringRef BitcodeBuffer(Buffer.data(), Buffer.size()); |
| 289 MemoryBufferRef MemBufRef(BitcodeBuffer, Filename); | 289 MemoryBufferRef MemBufRef(BitcodeBuffer, Filename); |
| 290 return NaClParseBitcodeFile(MemBufRef, Context, Verbose); | 290 DiagnosticHandlerFunction DiagnosticHandler = nullptr; |
| 291 return NaClParseBitcodeFile(MemBufRef, Context, DiagnosticHandler, Verbose); |
| 291 } | 292 } |
| OLD | NEW |