1*fe6060f1SDimitry Andric //===- TextAPIContext.h ---------------------------------------------------===// 2*fe6060f1SDimitry Andric // 3*fe6060f1SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4*fe6060f1SDimitry Andric // See https://llvm.org/LICENSE.txt for license information. 5*fe6060f1SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6*fe6060f1SDimitry Andric // 7*fe6060f1SDimitry Andric //===----------------------------------------------------------------------===// 8*fe6060f1SDimitry Andric // 9*fe6060f1SDimitry Andric // Defines the YAML Context for the TextAPI Reader/Writer. 10*fe6060f1SDimitry Andric // 11*fe6060f1SDimitry Andric //===----------------------------------------------------------------------===// 12*fe6060f1SDimitry Andric 13*fe6060f1SDimitry Andric #ifndef LLVM_TEXTAPI_MACHO_CONTEXT_H 14*fe6060f1SDimitry Andric #define LLVM_TEXTAPI_MACHO_CONTEXT_H 15*fe6060f1SDimitry Andric 16*fe6060f1SDimitry Andric #include <string> 17*fe6060f1SDimitry Andric 18*fe6060f1SDimitry Andric namespace llvm { 19*fe6060f1SDimitry Andric namespace MachO { 20*fe6060f1SDimitry Andric 21*fe6060f1SDimitry Andric enum FileType : unsigned; 22*fe6060f1SDimitry Andric 23*fe6060f1SDimitry Andric struct TextAPIContext { 24*fe6060f1SDimitry Andric std::string ErrorMessage; 25*fe6060f1SDimitry Andric std::string Path; 26*fe6060f1SDimitry Andric FileType FileKind; 27*fe6060f1SDimitry Andric }; 28*fe6060f1SDimitry Andric 29*fe6060f1SDimitry Andric } // end namespace MachO. 30*fe6060f1SDimitry Andric } // end namespace llvm. 31*fe6060f1SDimitry Andric 32*fe6060f1SDimitry Andric #endif // LLVM_TEXTAPI_MACHO_CONTEXT_H 33