[polly] r314050 - [Support] Rename tool_output_file to ToolOutputFile, NFC

Reid Kleckner via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 22 18:03:17 PDT 2017


Author: rnk
Date: Fri Sep 22 18:03:17 2017
New Revision: 314050

URL: http://llvm.org/viewvc/llvm-project?rev=314050&view=rev
Log:
[Support] Rename tool_output_file to ToolOutputFile, NFC

This class isn't similar to anything from the STL, so it shouldn't use
the STL naming conventions.

Modified:
    polly/trunk/lib/Exchange/JSONExporter.cpp
    polly/trunk/lib/Support/DumpModulePass.cpp

Modified: polly/trunk/lib/Exchange/JSONExporter.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Exchange/JSONExporter.cpp?rev=314050&r1=314049&r2=314050&view=diff
==============================================================================
--- polly/trunk/lib/Exchange/JSONExporter.cpp (original)
+++ polly/trunk/lib/Exchange/JSONExporter.cpp Fri Sep 22 18:03:17 2017
@@ -181,7 +181,7 @@ static void exportScop(Scop &S) {
 
   // Write to file.
   std::error_code EC;
-  tool_output_file F(FileName, EC, llvm::sys::fs::F_Text);
+  ToolOutputFile F(FileName, EC, llvm::sys::fs::F_Text);
 
   std::string FunctionName = S.getFunction().getName();
   errs() << "Writing JScop '" << S.getNameStr() << "' in function '"

Modified: polly/trunk/lib/Support/DumpModulePass.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Support/DumpModulePass.cpp?rev=314050&r1=314049&r2=314050&view=diff
==============================================================================
--- polly/trunk/lib/Support/DumpModulePass.cpp (original)
+++ polly/trunk/lib/Support/DumpModulePass.cpp Fri Sep 22 18:03:17 2017
@@ -65,9 +65,9 @@ public:
     }
     DEBUG(dbgs() << "Dumping module to " << Dumpfile << '\n');
 
-    std::unique_ptr<tool_output_file> Out;
+    std::unique_ptr<ToolOutputFile> Out;
     std::error_code EC;
-    Out.reset(new tool_output_file(Dumpfile, EC, sys::fs::F_None));
+    Out.reset(new ToolOutputFile(Dumpfile, EC, sys::fs::F_None));
     if (EC) {
       errs() << EC.message() << '\n';
       return false;




More information about the llvm-commits mailing list