[lld] [lld][COFF][LTO] Implement /opt:emitllvm option (PR #66964)
Martin Storsjö via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 21 02:26:23 PDT 2023
================
@@ -10,11 +10,15 @@
#define LLD_FILESYSTEM_H
#include "lld/Common/LLVM.h"
+#include "llvm/Support/raw_ostream.h"
+#include <memory>
#include <system_error>
namespace lld {
void unlinkAsync(StringRef path);
std::error_code tryCreateFile(StringRef path);
+std::unique_ptr<llvm::raw_fd_ostream> openFile(StringRef file);
----------------
mstorsjo wrote:
Could we have the refactoring of `openFile` and `openLTOOutputFile` in a separate preceding commit?
https://github.com/llvm/llvm-project/pull/66964
More information about the llvm-commits
mailing list