diff options
Diffstat (limited to 'llvm/tools/llvm-pdbdump/llvm-pdbdump.cpp')
| -rw-r--r-- | llvm/tools/llvm-pdbdump/llvm-pdbdump.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/tools/llvm-pdbdump/llvm-pdbdump.cpp b/llvm/tools/llvm-pdbdump/llvm-pdbdump.cpp index b798929ace8..7d4ba6471f1 100644 --- a/llvm/tools/llvm-pdbdump/llvm-pdbdump.cpp +++ b/llvm/tools/llvm-pdbdump/llvm-pdbdump.cpp @@ -22,6 +22,7 @@ #include "OutputStyle.h" #include "TypeDumper.h" #include "VariableDumper.h" +#include "YAMLOutputStyle.h" #include "llvm/ADT/ArrayRef.h" #include "llvm/ADT/BitVector.h" @@ -211,6 +212,8 @@ static Error dumpStructure(RawSession &RS) { std::unique_ptr<OutputStyle> O; if (opts::RawOutputStyle == opts::OutputStyleTy::LLVM) O = llvm::make_unique<LLVMOutputStyle>(File); + else if (opts::RawOutputStyle == opts::OutputStyleTy::YAML) + O = llvm::make_unique<YAMLOutputStyle>(File); else return make_error<RawError>(raw_error_code::feature_unsupported, "Requested output style unsupported"); @@ -256,6 +259,7 @@ static Error dumpStructure(RawSession &RS) { if (auto EC = O->dumpFpoStream()) return EC; + O->flush(); return Error::success(); } |

