//===--- ToolOutputFile.cpp - Implement the ToolOutputFile class --------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // // This implements the ToolOutputFile class. // //===----------------------------------------------------------------------===// #include "llvm/Support/ToolOutputFile.h" #include "llvm/Support/FileSystem.h" #include "llvm/Support/Signals.h" usingnamespacellvm; static bool isStdout(StringRef Filename) { … } CleanupInstaller::CleanupInstaller(StringRef Filename) : … { … } CleanupInstaller::~CleanupInstaller() { … } ToolOutputFile::ToolOutputFile(StringRef Filename, std::error_code &EC, sys::fs::OpenFlags Flags) : … { … } ToolOutputFile::ToolOutputFile(StringRef Filename, int FD) : … { … }