]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm-project/llvm/include/llvm/TextAPI/MachO/TextAPIReader.h
Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp
[FreeBSD/FreeBSD.git] / contrib / llvm-project / llvm / include / llvm / TextAPI / MachO / TextAPIReader.h
1 //===--- TextAPIReader.h - Text API Reader ----------------------*- 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 LLVM_TEXTAPI_MACHO_READER_H
10 #define LLVM_TEXTAPI_MACHO_READER_H
11
12 #include "llvm/Support/Error.h"
13 #include "llvm/Support/MemoryBuffer.h"
14
15 namespace llvm {
16 namespace MachO {
17
18 class InterfaceFile;
19
20 class TextAPIReader {
21 public:
22   static Expected<std::unique_ptr<InterfaceFile>>
23   get(std::unique_ptr<MemoryBuffer> InputBuffer);
24
25   static Expected<std::unique_ptr<InterfaceFile>>
26   getUnmanaged(llvm::MemoryBuffer *InputBuffer);
27
28   TextAPIReader() = delete;
29 };
30
31 } // end namespace MachO.
32 } // end namespace llvm.
33
34 #endif // LLVM_TEXTAPI_MACHO_READER_H