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 | 97ca964f3d1bbd0b5884612a16c55297db34e39c (patch) | |
tree | cf2b1793551aa687a99d753dbc268e90f91c9052 /tools/llc | |
parent | 4e65a6d127cba830c5a7ca87869d137796c2ba8b (diff) |
[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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@314050 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llc')
-rw-r--r-- | tools/llc/llc.cpp | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/tools/llc/llc.cpp b/tools/llc/llc.cpp index bbbec221208..fe6b97e34b6 100644 --- a/tools/llc/llc.cpp +++ b/tools/llc/llc.cpp @@ -167,9 +167,9 @@ static cl::opt<RunPassOption, true, cl::parser<std::string>> RunPass( static int compileModule(char **, LLVMContext &); -static std::unique_ptr<tool_output_file> -GetOutputStream(const char *TargetName, Triple::OSType OS, - const char *ProgName) { +static std::unique_ptr<ToolOutputFile> GetOutputStream(const char *TargetName, + Triple::OSType OS, + const char *ProgName) { // If we don't yet have an output filename, make one. if (OutputFilename.empty()) { if (InputFilename == "-") @@ -225,8 +225,7 @@ GetOutputStream(const char *TargetName, Triple::OSType OS, sys::fs::OpenFlags OpenFlags = sys::fs::F_None; if (!Binary) OpenFlags |= sys::fs::F_Text; - auto FDOut = llvm::make_unique<tool_output_file>(OutputFilename, EC, - OpenFlags); + auto FDOut = llvm::make_unique<ToolOutputFile>(OutputFilename, EC, OpenFlags); if (EC) { errs() << EC.message() << '\n'; return nullptr; @@ -322,11 +321,11 @@ int main(int argc, char **argv) { if (PassRemarksHotnessThreshold) Context.setDiagnosticsHotnessThreshold(PassRemarksHotnessThreshold); - std::unique_ptr<tool_output_file> YamlFile; + std::unique_ptr<ToolOutputFile> YamlFile; if (RemarksFilename != "") { std::error_code EC; - YamlFile = llvm::make_unique<tool_output_file>(RemarksFilename, EC, - sys::fs::F_None); + YamlFile = + llvm::make_unique<ToolOutputFile>(RemarksFilename, EC, sys::fs::F_None); if (EC) { errs() << EC.message() << '\n'; return 1; @@ -470,7 +469,7 @@ static int compileModule(char **argv, LLVMContext &Context) { Options.FloatABIType = FloatABIForCalls; // Figure out where we are going to send the output. - std::unique_ptr<tool_output_file> Out = + std::unique_ptr<ToolOutputFile> Out = GetOutputStream(TheTarget->getName(), TheTriple.getOS(), argv[0]); if (!Out) return 1; |