llvm-mirror/lib/TextAPI/MachO/TextAPIContext.h
Juergen Ributzka ab3e0147c2 [TextAPI] TBD Reader/Writer
Add basic infrastructure for reading and writting TBD files (version 1 - 3).

The TextAPI library is not used by anything yet (besides the unit tests). Tool
support will be added in a separate commit.

The TBD format is currently documented in the implementation file (TextStub.cpp).

https://reviews.llvm.org/D53945

Update: This contains changes to fix issues discovered by the bots:
 - add parentheses to silence warnings.
 - rename variables
 - use PlatformType from BinaryFormat
llvm-svn: 347823
2018-11-29 01:20:46 +00:00

36 lines
891 B
C++

//===- llvm/TextAPI/YAMLContext.h - YAML Context ----------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
///
/// \file
/// \brief Defines the YAML Context for the TextAPI Reader/Writer
///
//===----------------------------------------------------------------------===//
#ifndef LLVM_TEXTAPI_MACHO_CONTEXT_H
#define LLVM_TEXTAPI_MACHO_CONTEXT_H
#include "llvm/Support/MemoryBuffer.h"
#include <string>
namespace llvm {
namespace MachO {
enum FileType : unsigned;
struct TextAPIContext {
std::string ErrorMessage;
std::string Path;
FileType FileKind;
};
} // end namespace MachO.
} // end namespace llvm.
#endif // LLVM_TEXTAPI_MACHO_CONTEXT_H