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