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

Unified 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, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/Bitcode/NaCl/TestUtils/NaClBitcodeMunge.cpp ('k') | lib/IRReader/IRReader.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/Bitcode/NaCl/TestUtils/NaClBitcodeTextReader.cpp
diff --git a/lib/Bitcode/NaCl/TestUtils/NaClBitcodeTextReader.cpp b/lib/Bitcode/NaCl/TestUtils/NaClBitcodeTextReader.cpp
index 720e89455ce71732b12adcf48af4a20c3c66b42d..016f9d88031f119fc34a099efbd1b7e72980a7ef 100644
--- a/lib/Bitcode/NaCl/TestUtils/NaClBitcodeTextReader.cpp
+++ b/lib/Bitcode/NaCl/TestUtils/NaClBitcodeTextReader.cpp
@@ -287,5 +287,6 @@ llvm::parseNaClBitcodeText(const std::string &Filename, LLVMContext &Context,
// Parse buffer as ordinary binary bitcode file.
StringRef BitcodeBuffer(Buffer.data(), Buffer.size());
MemoryBufferRef MemBufRef(BitcodeBuffer, Filename);
- return NaClParseBitcodeFile(MemBufRef, Context, Verbose);
+ DiagnosticHandlerFunction DiagnosticHandler = nullptr;
+ return NaClParseBitcodeFile(MemBufRef, Context, DiagnosticHandler, Verbose);
}
« 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