2016-06-06 22:37:05 +02:00
|
|
|
//===- YAMLOutputStyle.cpp ------------------------------------ *- C++ --*-===//
|
|
|
|
//
|
2019-01-19 09:50:56 +01:00
|
|
|
// 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
|
2016-06-06 22:37:05 +02:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#include "YAMLOutputStyle.h"
|
|
|
|
|
|
|
|
#include "PdbYaml.h"
|
2017-06-09 22:46:17 +02:00
|
|
|
#include "llvm-pdbutil.h"
|
2016-06-06 22:37:05 +02:00
|
|
|
|
2017-05-30 18:36:15 +02:00
|
|
|
#include "llvm/DebugInfo/CodeView/DebugChecksumsSubsection.h"
|
|
|
|
#include "llvm/DebugInfo/CodeView/DebugSubsection.h"
|
|
|
|
#include "llvm/DebugInfo/CodeView/DebugUnknownSubsection.h"
|
2017-06-14 17:59:27 +02:00
|
|
|
#include "llvm/DebugInfo/CodeView/StringsAndChecksums.h"
|
2016-10-08 03:12:01 +02:00
|
|
|
#include "llvm/DebugInfo/MSF/MappedBlockStream.h"
|
2017-01-25 23:38:55 +01:00
|
|
|
#include "llvm/DebugInfo/PDB/Native/DbiStream.h"
|
2018-10-26 02:17:31 +02:00
|
|
|
#include "llvm/DebugInfo/PDB/Native/GlobalsStream.h"
|
2017-01-25 23:38:55 +01:00
|
|
|
#include "llvm/DebugInfo/PDB/Native/InfoStream.h"
|
2017-04-27 18:11:19 +02:00
|
|
|
#include "llvm/DebugInfo/PDB/Native/ModuleDebugStream.h"
|
2017-01-25 23:38:55 +01:00
|
|
|
#include "llvm/DebugInfo/PDB/Native/PDBFile.h"
|
2018-10-26 02:17:31 +02:00
|
|
|
#include "llvm/DebugInfo/PDB/Native/PublicsStream.h"
|
2017-01-25 23:38:55 +01:00
|
|
|
#include "llvm/DebugInfo/PDB/Native/RawConstants.h"
|
2018-10-26 02:17:31 +02:00
|
|
|
#include "llvm/DebugInfo/PDB/Native/SymbolStream.h"
|
2017-01-25 23:38:55 +01:00
|
|
|
#include "llvm/DebugInfo/PDB/Native/TpiStream.h"
|
2016-06-06 22:37:05 +02:00
|
|
|
|
|
|
|
using namespace llvm;
|
2017-04-27 18:12:16 +02:00
|
|
|
using namespace llvm::codeview;
|
2016-06-06 22:37:05 +02:00
|
|
|
using namespace llvm::pdb;
|
|
|
|
|
2017-06-16 00:24:24 +02:00
|
|
|
static bool checkModuleSubsection(opts::ModuleSubsection MS) {
|
|
|
|
return any_of(opts::pdb2yaml::DumpModuleSubsections,
|
|
|
|
[=](opts::ModuleSubsection M) {
|
|
|
|
return M == MS || M == opts::ModuleSubsection::All;
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2016-09-09 19:46:17 +02:00
|
|
|
YAMLOutputStyle::YAMLOutputStyle(PDBFile &File)
|
2017-03-15 23:18:53 +01:00
|
|
|
: File(File), Out(outs()), Obj(File.getAllocator()) {
|
|
|
|
Out.setWriteDefaultValues(!opts::pdb2yaml::Minimal);
|
|
|
|
}
|
2016-06-06 22:37:05 +02:00
|
|
|
|
2016-06-30 19:42:48 +02:00
|
|
|
Error YAMLOutputStyle::dump() {
|
2016-07-16 00:16:56 +02:00
|
|
|
if (opts::pdb2yaml::StreamDirectory)
|
2016-07-06 20:05:57 +02:00
|
|
|
opts::pdb2yaml::StreamMetadata = true;
|
2017-04-29 03:13:21 +02:00
|
|
|
|
2016-06-30 19:42:48 +02:00
|
|
|
if (auto EC = dumpFileHeaders())
|
|
|
|
return EC;
|
|
|
|
|
|
|
|
if (auto EC = dumpStreamMetadata())
|
|
|
|
return EC;
|
|
|
|
|
|
|
|
if (auto EC = dumpStreamDirectory())
|
|
|
|
return EC;
|
|
|
|
|
2017-01-20 23:42:09 +01:00
|
|
|
if (auto EC = dumpStringTable())
|
|
|
|
return EC;
|
|
|
|
|
2016-07-06 20:05:57 +02:00
|
|
|
if (auto EC = dumpPDBStream())
|
|
|
|
return EC;
|
|
|
|
|
2016-07-11 23:45:26 +02:00
|
|
|
if (auto EC = dumpDbiStream())
|
|
|
|
return EC;
|
|
|
|
|
2016-08-18 18:49:29 +02:00
|
|
|
if (auto EC = dumpTpiStream())
|
|
|
|
return EC;
|
|
|
|
|
2016-09-15 20:22:31 +02:00
|
|
|
if (auto EC = dumpIpiStream())
|
|
|
|
return EC;
|
|
|
|
|
2018-10-26 02:17:31 +02:00
|
|
|
if (auto EC = dumpPublics())
|
|
|
|
return EC;
|
|
|
|
|
2016-06-30 19:42:48 +02:00
|
|
|
flush();
|
|
|
|
return Error::success();
|
|
|
|
}
|
2016-06-06 22:37:05 +02:00
|
|
|
|
2017-04-25 22:22:02 +02:00
|
|
|
|
2016-06-30 19:42:48 +02:00
|
|
|
Error YAMLOutputStyle::dumpFileHeaders() {
|
2016-07-11 23:45:09 +02:00
|
|
|
if (opts::pdb2yaml::NoFileHeaders)
|
|
|
|
return Error::success();
|
|
|
|
|
2016-07-29 22:56:36 +02:00
|
|
|
yaml::MSFHeaders Headers;
|
2016-07-11 23:45:09 +02:00
|
|
|
Obj.Headers.emplace();
|
|
|
|
Obj.Headers->SuperBlock.NumBlocks = File.getBlockCount();
|
|
|
|
Obj.Headers->SuperBlock.BlockMapAddr = File.getBlockMapIndex();
|
|
|
|
Obj.Headers->SuperBlock.BlockSize = File.getBlockSize();
|
2016-06-06 22:37:05 +02:00
|
|
|
auto Blocks = File.getDirectoryBlockArray();
|
2016-07-11 23:45:09 +02:00
|
|
|
Obj.Headers->DirectoryBlocks.assign(Blocks.begin(), Blocks.end());
|
|
|
|
Obj.Headers->NumDirectoryBlocks = File.getNumDirectoryBlocks();
|
|
|
|
Obj.Headers->SuperBlock.NumDirectoryBytes = File.getNumDirectoryBytes();
|
|
|
|
Obj.Headers->NumStreams =
|
2016-06-30 19:43:00 +02:00
|
|
|
opts::pdb2yaml::StreamMetadata ? File.getNumStreams() : 0;
|
2016-07-16 00:17:19 +02:00
|
|
|
Obj.Headers->SuperBlock.FreeBlockMapBlock = File.getFreeBlockMapBlock();
|
2016-07-11 23:45:09 +02:00
|
|
|
Obj.Headers->SuperBlock.Unknown1 = File.getUnknown1();
|
|
|
|
Obj.Headers->FileSize = File.getFileSize();
|
2016-06-06 22:37:05 +02:00
|
|
|
|
|
|
|
return Error::success();
|
|
|
|
}
|
|
|
|
|
2017-01-20 23:42:09 +01:00
|
|
|
Error YAMLOutputStyle::dumpStringTable() {
|
2017-06-16 00:24:24 +02:00
|
|
|
bool RequiresStringTable = opts::pdb2yaml::DumpModuleFiles ||
|
|
|
|
!opts::pdb2yaml::DumpModuleSubsections.empty();
|
2017-06-02 21:49:14 +02:00
|
|
|
bool RequestedStringTable = opts::pdb2yaml::StringTable;
|
|
|
|
if (!RequiresStringTable && !RequestedStringTable)
|
2017-01-20 23:42:09 +01:00
|
|
|
return Error::success();
|
|
|
|
|
|
|
|
auto ExpectedST = File.getStringTable();
|
|
|
|
if (!ExpectedST)
|
|
|
|
return ExpectedST.takeError();
|
|
|
|
|
2017-06-02 21:49:14 +02:00
|
|
|
Obj.StringTable.emplace();
|
2017-01-20 23:42:09 +01:00
|
|
|
const auto &ST = ExpectedST.get();
|
|
|
|
for (auto ID : ST.name_ids()) {
|
2017-05-03 19:11:11 +02:00
|
|
|
auto S = ST.getStringForID(ID);
|
|
|
|
if (!S)
|
|
|
|
return S.takeError();
|
|
|
|
if (S->empty())
|
|
|
|
continue;
|
|
|
|
Obj.StringTable->push_back(*S);
|
2017-01-20 23:42:09 +01:00
|
|
|
}
|
|
|
|
return Error::success();
|
|
|
|
}
|
|
|
|
|
2016-06-30 19:42:48 +02:00
|
|
|
Error YAMLOutputStyle::dumpStreamMetadata() {
|
|
|
|
if (!opts::pdb2yaml::StreamMetadata)
|
2016-06-06 22:37:05 +02:00
|
|
|
return Error::success();
|
|
|
|
|
2016-07-16 00:16:56 +02:00
|
|
|
Obj.StreamSizes.emplace();
|
|
|
|
Obj.StreamSizes->assign(File.getStreamSizes().begin(),
|
|
|
|
File.getStreamSizes().end());
|
2016-06-06 22:37:05 +02:00
|
|
|
return Error::success();
|
|
|
|
}
|
|
|
|
|
2016-06-30 19:42:48 +02:00
|
|
|
Error YAMLOutputStyle::dumpStreamDirectory() {
|
|
|
|
if (!opts::pdb2yaml::StreamDirectory)
|
2016-06-06 22:37:05 +02:00
|
|
|
return Error::success();
|
|
|
|
|
2016-06-14 22:48:36 +02:00
|
|
|
auto StreamMap = File.getStreamMap();
|
|
|
|
Obj.StreamMap.emplace();
|
|
|
|
for (auto &Stream : StreamMap) {
|
|
|
|
pdb::yaml::StreamBlockList BlockList;
|
2016-07-16 00:16:56 +02:00
|
|
|
BlockList.Blocks.assign(Stream.begin(), Stream.end());
|
2016-06-14 22:48:36 +02:00
|
|
|
Obj.StreamMap->push_back(BlockList);
|
2016-06-06 22:37:17 +02:00
|
|
|
}
|
|
|
|
|
2016-06-06 22:37:05 +02:00
|
|
|
return Error::success();
|
|
|
|
}
|
|
|
|
|
2016-07-06 20:05:57 +02:00
|
|
|
Error YAMLOutputStyle::dumpPDBStream() {
|
|
|
|
if (!opts::pdb2yaml::PdbStream)
|
|
|
|
return Error::success();
|
|
|
|
|
|
|
|
auto IS = File.getPDBInfoStream();
|
|
|
|
if (!IS)
|
|
|
|
return IS.takeError();
|
|
|
|
|
|
|
|
auto &InfoS = IS.get();
|
|
|
|
Obj.PdbStream.emplace();
|
|
|
|
Obj.PdbStream->Age = InfoS.getAge();
|
|
|
|
Obj.PdbStream->Guid = InfoS.getGuid();
|
|
|
|
Obj.PdbStream->Signature = InfoS.getSignature();
|
|
|
|
Obj.PdbStream->Version = InfoS.getVersion();
|
2017-03-16 21:19:11 +01:00
|
|
|
Obj.PdbStream->Features = InfoS.getFeatureSignatures();
|
2016-07-06 20:05:57 +02:00
|
|
|
|
|
|
|
return Error::success();
|
|
|
|
}
|
|
|
|
|
2017-06-09 01:39:33 +02:00
|
|
|
static opts::ModuleSubsection convertSubsectionKind(DebugSubsectionKind K) {
|
|
|
|
switch (K) {
|
|
|
|
case DebugSubsectionKind::CrossScopeExports:
|
|
|
|
return opts::ModuleSubsection::CrossScopeExports;
|
|
|
|
case DebugSubsectionKind::CrossScopeImports:
|
|
|
|
return opts::ModuleSubsection::CrossScopeImports;
|
|
|
|
case DebugSubsectionKind::FileChecksums:
|
|
|
|
return opts::ModuleSubsection::FileChecksums;
|
|
|
|
case DebugSubsectionKind::InlineeLines:
|
|
|
|
return opts::ModuleSubsection::InlineeLines;
|
|
|
|
case DebugSubsectionKind::Lines:
|
|
|
|
return opts::ModuleSubsection::Lines;
|
2017-06-09 02:28:08 +02:00
|
|
|
case DebugSubsectionKind::Symbols:
|
|
|
|
return opts::ModuleSubsection::Symbols;
|
|
|
|
case DebugSubsectionKind::StringTable:
|
|
|
|
return opts::ModuleSubsection::StringTable;
|
|
|
|
case DebugSubsectionKind::FrameData:
|
|
|
|
return opts::ModuleSubsection::FrameData;
|
2017-06-09 01:39:33 +02:00
|
|
|
default:
|
|
|
|
return opts::ModuleSubsection::Unknown;
|
|
|
|
}
|
|
|
|
llvm_unreachable("Unreachable!");
|
|
|
|
}
|
|
|
|
|
2016-07-11 23:45:26 +02:00
|
|
|
Error YAMLOutputStyle::dumpDbiStream() {
|
|
|
|
if (!opts::pdb2yaml::DbiStream)
|
|
|
|
return Error::success();
|
|
|
|
|
2018-08-06 21:35:00 +02:00
|
|
|
if (!File.hasPDBDbiStream())
|
|
|
|
return Error::success();
|
|
|
|
|
2016-07-11 23:45:26 +02:00
|
|
|
auto DbiS = File.getPDBDbiStream();
|
|
|
|
if (!DbiS)
|
|
|
|
return DbiS.takeError();
|
|
|
|
|
|
|
|
auto &DS = DbiS.get();
|
|
|
|
Obj.DbiStream.emplace();
|
|
|
|
Obj.DbiStream->Age = DS.getAge();
|
|
|
|
Obj.DbiStream->BuildNumber = DS.getBuildNumber();
|
|
|
|
Obj.DbiStream->Flags = DS.getFlags();
|
|
|
|
Obj.DbiStream->MachineType = DS.getMachineType();
|
|
|
|
Obj.DbiStream->PdbDllRbld = DS.getPdbDllRbld();
|
|
|
|
Obj.DbiStream->PdbDllVersion = DS.getPdbDllVersion();
|
|
|
|
Obj.DbiStream->VerHeader = DS.getDbiVersion();
|
2017-06-16 00:24:24 +02:00
|
|
|
if (opts::pdb2yaml::DumpModules) {
|
2017-05-05 01:53:29 +02:00
|
|
|
const auto &Modules = DS.modules();
|
|
|
|
for (uint32_t I = 0; I < Modules.getModuleCount(); ++I) {
|
|
|
|
DbiModuleDescriptor MI = Modules.getModuleDescriptor(I);
|
|
|
|
|
2017-04-29 03:13:21 +02:00
|
|
|
Obj.DbiStream->ModInfos.emplace_back();
|
|
|
|
yaml::PdbDbiModuleInfo &DMI = Obj.DbiStream->ModInfos.back();
|
|
|
|
|
2017-05-05 01:53:29 +02:00
|
|
|
DMI.Mod = MI.getModuleName();
|
|
|
|
DMI.Obj = MI.getObjFileName();
|
2017-06-16 00:24:24 +02:00
|
|
|
if (opts::pdb2yaml::DumpModuleFiles) {
|
2017-05-05 01:53:29 +02:00
|
|
|
auto Files = Modules.source_files(I);
|
|
|
|
DMI.SourceFiles.assign(Files.begin(), Files.end());
|
|
|
|
}
|
2016-10-08 03:12:01 +02:00
|
|
|
|
2017-05-05 01:53:29 +02:00
|
|
|
uint16_t ModiStream = MI.getModuleStreamIndex();
|
2017-04-29 03:13:21 +02:00
|
|
|
if (ModiStream == kInvalidStreamIndex)
|
|
|
|
continue;
|
|
|
|
|
2019-07-12 20:24:38 +02:00
|
|
|
auto ModStreamData = File.createIndexedStream(ModiStream);
|
2017-05-05 01:53:29 +02:00
|
|
|
pdb::ModuleDebugStreamRef ModS(MI, std::move(ModStreamData));
|
2017-04-25 22:22:02 +02:00
|
|
|
if (auto EC = ModS.reload())
|
|
|
|
return EC;
|
|
|
|
|
2017-06-02 21:49:14 +02:00
|
|
|
auto ExpectedST = File.getStringTable();
|
|
|
|
if (!ExpectedST)
|
|
|
|
return ExpectedST.takeError();
|
2017-06-16 00:24:24 +02:00
|
|
|
if (!opts::pdb2yaml::DumpModuleSubsections.empty() &&
|
2017-06-02 21:49:14 +02:00
|
|
|
ModS.hasDebugSubsections()) {
|
|
|
|
auto ExpectedChecksums = ModS.findChecksumsSubsection();
|
|
|
|
if (!ExpectedChecksums)
|
|
|
|
return ExpectedChecksums.takeError();
|
|
|
|
|
2017-06-14 17:59:27 +02:00
|
|
|
StringsAndChecksumsRef SC(ExpectedST->getStringTable(),
|
|
|
|
*ExpectedChecksums);
|
|
|
|
|
2017-06-02 21:49:14 +02:00
|
|
|
for (const auto &SS : ModS.subsections()) {
|
2017-06-09 01:39:33 +02:00
|
|
|
opts::ModuleSubsection OptionKind = convertSubsectionKind(SS.kind());
|
2017-06-16 00:24:24 +02:00
|
|
|
if (!checkModuleSubsection(OptionKind))
|
2017-06-09 01:39:33 +02:00
|
|
|
continue;
|
|
|
|
|
2017-06-02 21:49:14 +02:00
|
|
|
auto Converted =
|
2017-06-14 17:59:27 +02:00
|
|
|
CodeViewYAML::YAMLDebugSubsection::fromCodeViewSubection(SC, SS);
|
2017-06-02 21:49:14 +02:00
|
|
|
if (!Converted)
|
|
|
|
return Converted.takeError();
|
|
|
|
DMI.Subsections.push_back(*Converted);
|
|
|
|
}
|
2017-04-25 22:22:02 +02:00
|
|
|
}
|
|
|
|
|
2017-06-16 00:24:24 +02:00
|
|
|
if (opts::pdb2yaml::DumpModuleSyms) {
|
2016-10-08 03:12:01 +02:00
|
|
|
DMI.Modi.emplace();
|
|
|
|
|
|
|
|
DMI.Modi->Signature = ModS.signature();
|
|
|
|
bool HadError = false;
|
|
|
|
for (auto &Sym : ModS.symbols(&HadError)) {
|
2017-05-31 01:50:44 +02:00
|
|
|
auto ES = CodeViewYAML::SymbolRecord::fromCodeViewSymbol(Sym);
|
|
|
|
if (!ES)
|
|
|
|
return ES.takeError();
|
|
|
|
|
|
|
|
DMI.Modi->Symbols.push_back(*ES);
|
2016-10-08 03:12:01 +02:00
|
|
|
}
|
|
|
|
}
|
2016-07-22 17:46:37 +02:00
|
|
|
}
|
|
|
|
}
|
2016-07-11 23:45:26 +02:00
|
|
|
return Error::success();
|
|
|
|
}
|
|
|
|
|
2016-08-18 18:49:29 +02:00
|
|
|
Error YAMLOutputStyle::dumpTpiStream() {
|
|
|
|
if (!opts::pdb2yaml::TpiStream)
|
|
|
|
return Error::success();
|
|
|
|
|
|
|
|
auto TpiS = File.getPDBTpiStream();
|
|
|
|
if (!TpiS)
|
|
|
|
return TpiS.takeError();
|
|
|
|
|
|
|
|
auto &TS = TpiS.get();
|
|
|
|
Obj.TpiStream.emplace();
|
|
|
|
Obj.TpiStream->Version = TS.getTpiVersion();
|
|
|
|
for (auto &Record : TS.types(nullptr)) {
|
2017-05-30 23:53:05 +02:00
|
|
|
auto ExpectedRecord = CodeViewYAML::LeafRecord::fromCodeViewRecord(Record);
|
|
|
|
if (!ExpectedRecord)
|
|
|
|
return ExpectedRecord.takeError();
|
|
|
|
Obj.TpiStream->Records.push_back(*ExpectedRecord);
|
2016-08-18 18:49:29 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
return Error::success();
|
|
|
|
}
|
|
|
|
|
2016-09-15 20:22:31 +02:00
|
|
|
Error YAMLOutputStyle::dumpIpiStream() {
|
|
|
|
if (!opts::pdb2yaml::IpiStream)
|
|
|
|
return Error::success();
|
|
|
|
|
2017-06-12 23:34:53 +02:00
|
|
|
auto InfoS = File.getPDBInfoStream();
|
|
|
|
if (!InfoS)
|
|
|
|
return InfoS.takeError();
|
|
|
|
if (!InfoS->containsIdStream())
|
|
|
|
return Error::success();
|
|
|
|
|
2016-09-15 20:22:31 +02:00
|
|
|
auto IpiS = File.getPDBIpiStream();
|
|
|
|
if (!IpiS)
|
|
|
|
return IpiS.takeError();
|
|
|
|
|
|
|
|
auto &IS = IpiS.get();
|
|
|
|
Obj.IpiStream.emplace();
|
|
|
|
Obj.IpiStream->Version = IS.getTpiVersion();
|
|
|
|
for (auto &Record : IS.types(nullptr)) {
|
2017-05-30 23:53:05 +02:00
|
|
|
auto ExpectedRecord = CodeViewYAML::LeafRecord::fromCodeViewRecord(Record);
|
|
|
|
if (!ExpectedRecord)
|
|
|
|
return ExpectedRecord.takeError();
|
|
|
|
|
|
|
|
Obj.IpiStream->Records.push_back(*ExpectedRecord);
|
2016-09-15 20:22:31 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
return Error::success();
|
|
|
|
}
|
|
|
|
|
2018-10-26 02:17:31 +02:00
|
|
|
Error YAMLOutputStyle::dumpPublics() {
|
|
|
|
if (!opts::pdb2yaml::PublicsStream)
|
|
|
|
return Error::success();
|
|
|
|
|
|
|
|
Obj.PublicsStream.emplace();
|
|
|
|
auto ExpectedPublics = File.getPDBPublicsStream();
|
|
|
|
if (!ExpectedPublics) {
|
|
|
|
llvm::consumeError(ExpectedPublics.takeError());
|
|
|
|
return Error::success();
|
|
|
|
}
|
|
|
|
|
|
|
|
PublicsStream &Publics = *ExpectedPublics;
|
|
|
|
const GSIHashTable &PublicsTable = Publics.getPublicsTable();
|
|
|
|
|
|
|
|
auto ExpectedSyms = File.getPDBSymbolStream();
|
|
|
|
if (!ExpectedSyms) {
|
|
|
|
llvm::consumeError(ExpectedSyms.takeError());
|
|
|
|
return Error::success();
|
|
|
|
}
|
|
|
|
|
|
|
|
BinaryStreamRef SymStream =
|
|
|
|
ExpectedSyms->getSymbolArray().getUnderlyingStream();
|
|
|
|
for (uint32_t PubSymOff : PublicsTable) {
|
|
|
|
Expected<CVSymbol> Sym = readSymbolFromStream(SymStream, PubSymOff);
|
|
|
|
if (!Sym)
|
|
|
|
return Sym.takeError();
|
|
|
|
auto ES = CodeViewYAML::SymbolRecord::fromCodeViewSymbol(*Sym);
|
|
|
|
if (!ES)
|
|
|
|
return ES.takeError();
|
|
|
|
|
|
|
|
Obj.PublicsStream->PubSyms.push_back(*ES);
|
|
|
|
}
|
|
|
|
|
|
|
|
return Error::success();
|
|
|
|
}
|
|
|
|
|
2016-06-06 22:37:05 +02:00
|
|
|
void YAMLOutputStyle::flush() {
|
|
|
|
Out << Obj;
|
|
|
|
outs().flush();
|
|
|
|
}
|