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

Unified Diff: tools/pnacl-bcdis/pnacl-bcdis.cpp

Issue 940243003: PNaCl localmod mods in LLVM to 223109 (local files only) (Closed)
Patch Set: xx Created 5 years, 10 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/pnacl-bcdis/pnacl-bcdis.cpp
diff --git a/tools/pnacl-bcdis/pnacl-bcdis.cpp b/tools/pnacl-bcdis/pnacl-bcdis.cpp
index bd091d72f0bbca11e112d73ff099c796d5bfeab8..bb6c8e3b00a0fdc1bfb84ef72d503aba18838204 100644
--- a/tools/pnacl-bcdis/pnacl-bcdis.cpp
+++ b/tools/pnacl-bcdis/pnacl-bcdis.cpp
@@ -56,10 +56,10 @@ static bool DisassembleBitcode() {
}
// Create a stream to output the bitcode text to.
- std::string ErrorInfo;
- raw_fd_ostream Output(OutputFilename.c_str(), ErrorInfo, sys::fs::F_None);
- if (!ErrorInfo.empty()) {
- errs() << ErrorInfo << '\n';
+ std::error_code EC;
+ raw_fd_ostream Output(OutputFilename, EC, sys::fs::F_None);
+ if (EC) {
+ errs() << EC.message() << '\n';
return true;
}

Powered by Google App Engine
This is Rietveld 408576698