[polly] r216394 - Update for LLVM api change
Rafael Espindola
rafael.espindola at gmail.com
Mon Aug 25 11:16:52 PDT 2014
Author: rafael
Date: Mon Aug 25 13:16:52 2014
New Revision: 216394
URL: http://llvm.org/viewvc/llvm-project?rev=216394&view=rev
Log:
Update for LLVM api change
Modified:
polly/trunk/lib/Exchange/JSONExporter.cpp
Modified: polly/trunk/lib/Exchange/JSONExporter.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Exchange/JSONExporter.cpp?rev=216394&r1=216393&r2=216394&view=diff
==============================================================================
--- polly/trunk/lib/Exchange/JSONExporter.cpp (original)
+++ polly/trunk/lib/Exchange/JSONExporter.cpp Mon Aug 25 13:16:52 2014
@@ -130,14 +130,14 @@ bool JSONExporter::runOnScop(Scop &scop)
std::string fileContent = writer.write(jscop);
// Write to file.
- std::string ErrInfo;
- tool_output_file F(FileName.c_str(), ErrInfo, llvm::sys::fs::F_Text);
+ std::error_code EC;
+ tool_output_file F(FileName, EC, llvm::sys::fs::F_Text);
std::string FunctionName = R.getEntry()->getParent()->getName();
errs() << "Writing JScop '" << R.getNameStr() << "' in function '"
<< FunctionName << "' to '" << FileName << "'.\n";
- if (ErrInfo.empty()) {
+ if (!EC) {
F.os() << fileContent;
F.os().close();
if (!F.os().has_error()) {
More information about the llvm-commits
mailing list