mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-28 23:43:25 +00:00
6ad7067c1a
We have various command line options that print the type of a stream, the size of a stream, etc but nowhere that it can all be viewed together. Since a previous patch introduced the ability to dump the bytes of a stream, this seems like a good place to present a full view of the stream's properties including its size, what kind of data it represents, and the blocks it occupies. So I added the ability to print that information to the -stream-data command line option. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@281077 91177308-0d34-0410-b5e6-96231b3b80d8
58 lines
1.3 KiB
C++
58 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 {
|
|
class BitVector;
|
|
namespace pdb {
|
|
class LLVMOutputStyle : public OutputStyle {
|
|
public:
|
|
LLVMOutputStyle(PDBFile &File);
|
|
|
|
Error dump() override;
|
|
|
|
private:
|
|
void discoverStreamPurposes();
|
|
|
|
Error dumpFileHeaders();
|
|
Error dumpStreamSummary();
|
|
Error dumpFreePageMap();
|
|
Error dumpBlockRanges();
|
|
Error dumpStreamBytes();
|
|
Error dumpStreamBlocks();
|
|
Error dumpInfoStream();
|
|
Error dumpTpiStream(uint32_t StreamIdx);
|
|
Error dumpDbiStream();
|
|
Error dumpSectionContribs();
|
|
Error dumpSectionMap();
|
|
Error dumpPublicsStream();
|
|
Error dumpSectionHeaders();
|
|
Error dumpFpoStream();
|
|
|
|
void dumpBitVector(StringRef Name, const BitVector &V);
|
|
|
|
void flush();
|
|
|
|
PDBFile &File;
|
|
ScopedPrinter P;
|
|
codeview::CVTypeDumper Dumper;
|
|
std::vector<std::string> StreamPurposes;
|
|
};
|
|
}
|
|
}
|
|
|
|
#endif
|