Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-10 08:42:41

0001 //===- Filesystem.h ---------------------------------------------*- C++ -*-===//
0002 //
0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0004 // See https://llvm.org/LICENSE.txt for license information.
0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0006 //
0007 //===----------------------------------------------------------------------===//
0008 
0009 #ifndef LLD_FILESYSTEM_H
0010 #define LLD_FILESYSTEM_H
0011 
0012 #include "lld/Common/LLVM.h"
0013 #include "llvm/Support/raw_ostream.h"
0014 #include <memory>
0015 #include <system_error>
0016 
0017 namespace lld {
0018 void unlinkAsync(StringRef path);
0019 std::error_code tryCreateFile(StringRef path);
0020 std::unique_ptr<llvm::raw_fd_ostream> openFile(StringRef file);
0021 std::unique_ptr<llvm::raw_fd_ostream> openLTOOutputFile(StringRef file);
0022 } // namespace lld
0023 
0024 #endif