]> granicus.if.org Git - clang/commitdiff
[Support] Rename tool_output_file to ToolOutputFile, NFC
authorReid Kleckner <rnk@google.com>
Sat, 23 Sep 2017 01:03:17 +0000 (01:03 +0000)
committerReid Kleckner <rnk@google.com>
Sat, 23 Sep 2017 01:03:17 +0000 (01:03 +0000)
This class isn't similar to anything from the STL, so it shouldn't use
the STL naming conventions.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@314050 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CodeGenAction.cpp

index b6caa50381e02e819c0aa723f7cdafc24af14563..51dee175447e33ffa598e6131678549f18c0747f 100644 (file)
@@ -265,12 +265,11 @@ namespace clang {
         Ctx.setDiagnosticsHotnessThreshold(
             CodeGenOpts.DiagnosticsHotnessThreshold);
 
-      std::unique_ptr<llvm::tool_output_file> OptRecordFile;
+      std::unique_ptr<llvm::ToolOutputFile> OptRecordFile;
       if (!CodeGenOpts.OptRecordFile.empty()) {
         std::error_code EC;
-        OptRecordFile =
-          llvm::make_unique<llvm::tool_output_file>(CodeGenOpts.OptRecordFile,
-                                                    EC, sys::fs::F_None);
+        OptRecordFile = llvm::make_unique<llvm::ToolOutputFile>(
+            CodeGenOpts.OptRecordFile, EC, sys::fs::F_None);
         if (EC) {
           Diags.Report(diag::err_cannot_open_file) <<
             CodeGenOpts.OptRecordFile << EC.message();