mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-25 05:52:53 +02:00
9cba8e4a60
This is the simplest possible patch to get some kind of YAML output. All it dumps is the MSF header fields so that in theory an empty MSF file could be reconstructed. Reviewed By: ruiu, majnemer Differential Revision: http://reviews.llvm.org/D20971 llvm-svn: 271939
49 lines
1.3 KiB
C++
49 lines
1.3 KiB
C++
//===- LLVMOutputStyle.h -------------------------------------- *- C++ --*-===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef LLVM_TOOLS_LLVMPDBDUMP_LLVMOUTPUTSTYLE_H
|
|
#define LLVM_TOOLS_LLVMPDBDUMP_LLVMOUTPUTSTYLE_H
|
|
|
|
#include "OutputStyle.h"
|
|
|
|
#include "llvm/DebugInfo/CodeView/TypeDumper.h"
|
|
#include "llvm/Support/ScopedPrinter.h"
|
|
|
|
namespace llvm {
|
|
namespace pdb {
|
|
class LLVMOutputStyle : public OutputStyle {
|
|
public:
|
|
LLVMOutputStyle(PDBFile &File);
|
|
|
|
Error dumpFileHeaders() override;
|
|
Error dumpStreamSummary() override;
|
|
Error dumpStreamBlocks() override;
|
|
Error dumpStreamData() override;
|
|
Error dumpInfoStream() override;
|
|
Error dumpNamedStream() override;
|
|
Error dumpTpiStream(uint32_t StreamIdx) override;
|
|
Error dumpDbiStream() override;
|
|
Error dumpSectionContribs() override;
|
|
Error dumpSectionMap() override;
|
|
Error dumpPublicsStream() override;
|
|
Error dumpSectionHeaders() override;
|
|
Error dumpFpoStream() override;
|
|
|
|
void flush() override;
|
|
|
|
private:
|
|
PDBFile &File;
|
|
ScopedPrinter P;
|
|
codeview::CVTypeDumper TD;
|
|
};
|
|
}
|
|
}
|
|
|
|
#endif
|