1 | //===-- Support.h -----------------------------------------------*- C++ -*-===// |
---|---|
2 | // |
3 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
4 | // See https://llvm.org/LICENSE.txt for license information. |
5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
6 | // |
7 | //===----------------------------------------------------------------------===// |
8 | |
9 | #ifndef LLDB_HOST_LINUX_SUPPORT_H |
10 | #define LLDB_HOST_LINUX_SUPPORT_H |
11 | |
12 | #include "llvm/Support/ErrorOr.h" |
13 | #include "llvm/Support/MemoryBuffer.h" |
14 | #include <memory> |
15 | |
16 | namespace lldb_private { |
17 | |
18 | llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> |
19 | getProcFile(::pid_t pid, ::pid_t tid, const llvm::Twine &file); |
20 | |
21 | llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> |
22 | getProcFile(::pid_t pid, const llvm::Twine &file); |
23 | |
24 | llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> |
25 | getProcFile(const llvm::Twine &file); |
26 | |
27 | } // namespace lldb_private |
28 | |
29 | #endif // #ifndef LLDB_HOST_LINUX_SUPPORT_H |
30 |