diff options
author | Reid Kleckner <rnk@google.com> | 2017-09-23 01:03:17 +0000 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2017-09-23 01:03:17 +0000 |
commit | 3fc649cb76f56da0ded256048de6dc634f03b502 (patch) | |
tree | a29d08e8d26ccc55ab05d98235f5c1027d912589 /llvm/tools/bugpoint/OptimizerDriver.cpp | |
parent | 8e30a1c6072a9f922f37b3092a84eda279bb6a7b (diff) | |
download | bcm5719-llvm-3fc649cb76f56da0ded256048de6dc634f03b502.tar.gz bcm5719-llvm-3fc649cb76f56da0ded256048de6dc634f03b502.zip |
[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.
llvm-svn: 314050
Diffstat (limited to 'llvm/tools/bugpoint/OptimizerDriver.cpp')
-rw-r--r-- | llvm/tools/bugpoint/OptimizerDriver.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/tools/bugpoint/OptimizerDriver.cpp b/llvm/tools/bugpoint/OptimizerDriver.cpp index 0b22f1b729a..c112ae00ed6 100644 --- a/llvm/tools/bugpoint/OptimizerDriver.cpp +++ b/llvm/tools/bugpoint/OptimizerDriver.cpp @@ -58,7 +58,7 @@ static cl::opt<std::string> /// writeProgramToFile - This writes the current "Program" to the named bitcode /// file. If an error occurs, true is returned. /// -static bool writeProgramToFileAux(tool_output_file &Out, const Module *M) { +static bool writeProgramToFileAux(ToolOutputFile &Out, const Module *M) { WriteBitcodeToFile(M, Out.os(), PreserveBitcodeUseListOrder); Out.os().close(); if (!Out.os().has_error()) { @@ -70,14 +70,14 @@ static bool writeProgramToFileAux(tool_output_file &Out, const Module *M) { bool BugDriver::writeProgramToFile(const std::string &Filename, int FD, const Module *M) const { - tool_output_file Out(Filename, FD); + ToolOutputFile Out(Filename, FD); return writeProgramToFileAux(Out, M); } bool BugDriver::writeProgramToFile(const std::string &Filename, const Module *M) const { std::error_code EC; - tool_output_file Out(Filename, EC, sys::fs::F_None); + ToolOutputFile Out(Filename, EC, sys::fs::F_None); if (!EC) return writeProgramToFileAux(Out, M); return true; @@ -154,7 +154,7 @@ bool BugDriver::runPasses(Module *Program, return 1; } - tool_output_file InFile(InputFilename, InputFD); + ToolOutputFile InFile(InputFilename, InputFD); WriteBitcodeToFile(Program, InFile.os(), PreserveBitcodeUseListOrder); InFile.os().close(); |