2017-06-22 22:58:11 +02:00
|
|
|
//===- BytesOutputStyle.h ------------------------------------- *- 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
|
2017-06-22 22:58:11 +02:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef LLVM_TOOLS_LLVMPDBDUMP_BYTESOUTPUTSTYLE_H
|
|
|
|
#define LLVM_TOOLS_LLVMPDBDUMP_BYTESOUTPUTSTYLE_H
|
|
|
|
|
|
|
|
#include "LinePrinter.h"
|
|
|
|
#include "OutputStyle.h"
|
2017-08-21 16:53:25 +02:00
|
|
|
#include "StreamUtil.h"
|
2017-06-22 22:58:11 +02:00
|
|
|
|
|
|
|
#include "llvm/Support/Error.h"
|
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
|
2017-06-23 23:50:54 +02:00
|
|
|
namespace codeview {
|
|
|
|
class LazyRandomTypeCollection;
|
|
|
|
}
|
|
|
|
|
2017-06-22 22:58:11 +02:00
|
|
|
namespace pdb {
|
|
|
|
|
|
|
|
class PDBFile;
|
|
|
|
|
|
|
|
class BytesOutputStyle : public OutputStyle {
|
|
|
|
public:
|
|
|
|
BytesOutputStyle(PDBFile &File);
|
|
|
|
|
|
|
|
Error dump() override;
|
|
|
|
|
|
|
|
private:
|
2017-06-23 22:18:38 +02:00
|
|
|
void dumpNameMap();
|
2017-06-22 22:58:11 +02:00
|
|
|
void dumpBlockRanges(uint32_t Min, uint32_t Max);
|
2017-06-23 21:54:44 +02:00
|
|
|
void dumpByteRanges(uint32_t Min, uint32_t Max);
|
2017-08-03 00:25:52 +02:00
|
|
|
void dumpFpm();
|
2017-06-22 22:58:11 +02:00
|
|
|
void dumpStreamBytes();
|
|
|
|
|
2017-06-23 23:11:54 +02:00
|
|
|
void dumpSectionContributions();
|
|
|
|
void dumpSectionMap();
|
|
|
|
void dumpModuleInfos();
|
|
|
|
void dumpFileInfo();
|
|
|
|
void dumpTypeServerMap();
|
|
|
|
void dumpECData();
|
|
|
|
|
2017-06-24 01:08:57 +02:00
|
|
|
void dumpModuleSyms();
|
|
|
|
void dumpModuleC11();
|
|
|
|
void dumpModuleC13();
|
|
|
|
|
2017-06-23 23:50:54 +02:00
|
|
|
void dumpTypeIndex(uint32_t StreamIdx, ArrayRef<uint32_t> Indices);
|
|
|
|
|
|
|
|
Expected<codeview::LazyRandomTypeCollection &>
|
|
|
|
initializeTypes(uint32_t StreamIdx);
|
|
|
|
|
|
|
|
std::unique_ptr<codeview::LazyRandomTypeCollection> TpiTypes;
|
|
|
|
std::unique_ptr<codeview::LazyRandomTypeCollection> IpiTypes;
|
|
|
|
|
2017-06-22 22:58:11 +02:00
|
|
|
PDBFile &File;
|
|
|
|
LinePrinter P;
|
2017-06-23 22:18:38 +02:00
|
|
|
ExitOnError Err;
|
2017-08-21 16:53:25 +02:00
|
|
|
SmallVector<StreamInfo, 8> StreamPurposes;
|
2017-06-22 22:58:11 +02:00
|
|
|
};
|
|
|
|
} // namespace pdb
|
|
|
|
} // namespace llvm
|
|
|
|
|
|
|
|
#endif
|