Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Side by Side Diff: lib/Bitcode/NaCl/TestUtils/NaClBitcodeTextReader.cpp

Issue 1310883003: Install notion of diagnostic handler into PNaCl bitcode readers. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-llvm.git@master
Patch Set: Fix issues in patch set 2. Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « lib/Bitcode/NaCl/TestUtils/NaClBitcodeMunge.cpp ('k') | lib/IRReader/IRReader.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « lib/Bitcode/NaCl/TestUtils/NaClBitcodeMunge.cpp ('k') | lib/IRReader/IRReader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698