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(MemoryBufferRef InputBuffer); 24 25 TextAPIReader() = delete; 26 }; 27 28 } // end namespace MachO. 29 } // end namespace llvm. 30 31 #endif // LLVM_TEXTAPI_MACHO_READER_H 32