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

Unified Diff: tools/llvm-dis/llvm-dis.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: Reformat and fix nits. 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
Index: tools/llvm-dis/llvm-dis.cpp
diff --git a/tools/llvm-dis/llvm-dis.cpp b/tools/llvm-dis/llvm-dis.cpp
index dbf0c9c7b3c3440f4fddc91b550ebef9189ee1fd..d9a52e3aa75418341089b7a38583404cf2dbdf4a 100644
--- a/tools/llvm-dis/llvm-dis.cpp
+++ b/tools/llvm-dis/llvm-dis.cpp
@@ -188,9 +188,10 @@ int main(int argc, char **argv) {
break;
}
case PNaClFormat: {
- M.reset(getNaClStreamedBitcodeModule(
- DisplayFilename, Buffer.release(), Context, &errs(),
- &ErrorMessage));
+ DiagnosticHandlerFunction DiagnosticHandler = nullptr;
+ M.reset(getNaClStreamedBitcodeModule(DisplayFilename, Buffer.release(),
+ Context, DiagnosticHandler,
Derek Schuff 2015/08/24 22:46:04 why not just pass nullptr here instead of creating
Derek Schuff 2015/08/25 17:06:04 From in-person conversations, this is just for sel
Karl 2015/08/26 17:39:48 Done.
+ &ErrorMessage));
if(M.get()) {
if (std::error_code EC = M->materializeAllPermanently()) {
FoundErrors = true;

Powered by Google App Engine
This is Rietveld 408576698