Andrew Walbran | 3d2c197 | 2020-04-07 12:24:26 +0100 | [diff] [blame] | 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" |
Andrew Walbran | 3d2c197 | 2020-04-07 12:24:26 +0100 | [diff] [blame] | 13 | |
| 14 | namespace llvm { |
Olivier Deprez | f4ef2d0 | 2021-04-20 13:36:24 +0200 | [diff] [blame^] | 15 | |
| 16 | class MemoryBufferRef; |
| 17 | |
Andrew Walbran | 3d2c197 | 2020-04-07 12:24:26 +0100 | [diff] [blame] | 18 | namespace MachO { |
| 19 | |
| 20 | class InterfaceFile; |
| 21 | |
| 22 | class TextAPIReader { |
| 23 | public: |
| 24 | static Expected<std::unique_ptr<InterfaceFile>> |
Olivier Deprez | f4ef2d0 | 2021-04-20 13:36:24 +0200 | [diff] [blame^] | 25 | get(MemoryBufferRef InputBuffer); |
Andrew Walbran | 3d2c197 | 2020-04-07 12:24:26 +0100 | [diff] [blame] | 26 | |
| 27 | TextAPIReader() = delete; |
| 28 | }; |
| 29 | |
| 30 | } // end namespace MachO. |
| 31 | } // end namespace llvm. |
| 32 | |
| 33 | #endif // LLVM_TEXTAPI_MACHO_READER_H |