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