diff options
author | Alex Brachet <alexbrachetmialot@gmail.com> | 2019-08-06 12:15:18 +0000 |
---|---|---|
committer | Alex Brachet <alexbrachetmialot@gmail.com> | 2019-08-06 12:15:18 +0000 |
commit | 3cfeaa4d2c17ff3f9285c475cd706167b0c172fe (patch) | |
tree | ea83d1e4854a89772c24d1e1e575b2b1eb1e7fc7 /llvm/lib/ObjectYAML/MinidumpEmitter.cpp | |
parent | 4e79097dc7c30ea8e1a7e96b740113e7cd9e635d (diff) | |
download | bcm5719-llvm-3cfeaa4d2c17ff3f9285c475cd706167b0c172fe.tar.gz bcm5719-llvm-3cfeaa4d2c17ff3f9285c475cd706167b0c172fe.zip |
[yaml2obj] Move core yaml2obj code into lib and include for use in unit tests
Reviewers: jhenderson, rupprecht, MaskRay, grimar, labath
Reviewed By: rupprecht
Subscribers: seiya, mgorny, sbc100, hiraditya, aheejin, jakehehrlich, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D65255
llvm-svn: 368021
Diffstat (limited to 'llvm/lib/ObjectYAML/MinidumpEmitter.cpp')
-rw-r--r-- | llvm/lib/ObjectYAML/MinidumpEmitter.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/llvm/lib/ObjectYAML/MinidumpEmitter.cpp b/llvm/lib/ObjectYAML/MinidumpEmitter.cpp new file mode 100644 index 00000000000..3e3a25417df --- /dev/null +++ b/llvm/lib/ObjectYAML/MinidumpEmitter.cpp @@ -0,0 +1,24 @@ +//===- yaml2minidump.cpp - Convert a YAML file to a minidump file ---------===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +#include "llvm/ObjectYAML/MinidumpYAML.h" +#include "llvm/ObjectYAML/yaml2obj.h" +#include "llvm/Support/raw_ostream.h" + +using namespace llvm; + +namespace llvm { +namespace yaml { + +int yaml2minidump(MinidumpYAML::Object &Doc, raw_ostream &Out) { + writeAsBinary(Doc, Out); + return 0; +} + +} // namespace yaml +} // namespace llvm |