1 //===- minidump2yaml.cpp - Minidump to yaml conversion tool -----*- C++ -*-===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
10 #include "llvm/Object/Minidump.h"
11 #include "llvm/ObjectYAML/MinidumpYAML.h"
12 #include "llvm/Support/YAMLTraits.h"
16 Error
minidump2yaml(raw_ostream
&Out
, const object::MinidumpFile
&Obj
) {
17 auto ExpectedObject
= MinidumpYAML::Object::create(Obj
);
19 return ExpectedObject
.takeError();
20 yaml::Output
Output(Out
);
21 Output
<< *ExpectedObject
;
22 return llvm::Error::success();