blob: 9287df02d180f202ca68a64172098119a33d3b20 [file] [log] [blame]
//===- Core/YamlReader.h - Reads YAML -------------------------------------===//
//
// The LLVM Linker
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#ifndef LLD_CORE_YAML_READER_H_
#define LLD_CORE_YAML_READER_H_
#include "lld/Core/LLVM.h"
#include "llvm/Support/system_error.h"
#include <vector>
namespace llvm {
class MemoryBuffer;
class StringRef;
}
namespace lld {
class Platform;
class File;
namespace yaml {
/// parseObjectTextFileOrSTDIN - Open the specified YAML file (use stdin if
/// the path is "-") and parse into lld::File object(s) and append each to
/// the specified vector<File*>.
error_code parseObjectTextFileOrSTDIN( StringRef path
, Platform&
, std::vector<const File *>&);
/// parseObjectText - Parse the specified YAML formatted MemoryBuffer
/// into lld::File object(s) and append each to the specified vector<File*>.
error_code parseObjectText( llvm::MemoryBuffer *mb
, Platform&
, std::vector<const File *>&);
} // namespace yaml
} // namespace lld
#endif // LLD_CORE_YAML_READER_H_