1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00
llvm-mirror/tools/llvm-pdbutil
Nico Weber 28b4519628 llvm-pdbdump: Fix several smaller issues with injected source compression handling
- getCompression() used to return a PDB_SourceCompression even though
  the docs for IDiaInjectedSource are explicit about the return value
  being compiler-dependent. Return an uint32_t instead, and make the
  printing code handle unknown values better by printing "Unknown" and
  the int value instead of not printing any compression.

- Print compressed contents as hex dump, not as string.

- Add compression type "DotNet", which is used (at least) by csc.exe,
  the C# compiler. Also add a lengthy comment describing the stream
  contents (derived from looking at the raw hex contents long enough
  to see the GUIDs, which led me to the roslyn and mono implementations
  for handling this).

- The native injected source dumper was dumping the contents of the
  whole data stream -- but csc.exe writes a stream that's padded with
  zero bytes to the next 512 boundary, and the dia api doesn't display
  those padding bytes. So make NativeInjectedSource::getCode() do the
  same thing.

Differential Revision: https://reviews.llvm.org/D64879

llvm-svn: 366386
2019-07-17 22:59:52 +00:00
..
BytesOutputStyle.cpp Slightly simplify MappedBlockStream::createIndexedStream() calls 2019-07-12 18:24:38 +00:00
BytesOutputStyle.h
CMakeLists.txt [llvm-pdbutil] Add -type-ref-stats to help find unused type info 2019-03-21 18:02:34 +00:00
DumpOutputStyle.cpp Add explicit newline at end of llvm-pdbutil dump 2019-07-12 18:22:47 +00:00
DumpOutputStyle.h [pdb] Add -type-stats and sort stats by descending size 2019-03-22 21:22:13 +00:00
ExplainOutputStyle.cpp
ExplainOutputStyle.h
FormatUtil.cpp
FormatUtil.h
InputFile.cpp Recommit [Object] Change object::SectionRef::getContents() to return Expected<StringRef> 2019-05-16 13:24:04 +00:00
InputFile.h
LinePrinter.cpp Slightly simplify MappedBlockStream::createIndexedStream() calls 2019-07-12 18:24:38 +00:00
LinePrinter.h llvm-pdbdump: Fix several smaller issues with injected source compression handling 2019-07-17 22:59:52 +00:00
llvm-pdbutil.cpp llvm-pdbdump: Fix several smaller issues with injected source compression handling 2019-07-17 22:59:52 +00:00
llvm-pdbutil.h [pdb] Add -type-stats and sort stats by descending size 2019-03-22 21:22:13 +00:00
LLVMBuild.txt
MinimalSymbolDumper.cpp [COFF, ARM64] Add CodeView register mapping 2019-05-31 23:43:31 +00:00
MinimalSymbolDumper.h
MinimalTypeDumper.cpp [codeview] Remove Type member from CVRecord 2019-04-04 00:28:48 +00:00
MinimalTypeDumper.h [llvm-pdbutil] Add -type-ref-stats to help find unused type info 2019-03-21 18:02:34 +00:00
OutputStyle.h
PdbYaml.cpp [COFF, ARM64] Add CodeView register mapping 2019-05-31 23:43:31 +00:00
PdbYaml.h
PrettyBuiltinDumper.cpp
PrettyBuiltinDumper.h
PrettyClassDefinitionDumper.cpp
PrettyClassDefinitionDumper.h
PrettyClassLayoutGraphicalDumper.cpp
PrettyClassLayoutGraphicalDumper.h
PrettyCompilandDumper.cpp
PrettyCompilandDumper.h
PrettyEnumDumper.cpp
PrettyEnumDumper.h
PrettyExternalSymbolDumper.cpp
PrettyExternalSymbolDumper.h
PrettyFunctionDumper.cpp [COFF, ARM64] Add CodeView register mapping 2019-05-31 23:43:31 +00:00
PrettyFunctionDumper.h
PrettyTypedefDumper.cpp
PrettyTypedefDumper.h
PrettyTypeDumper.cpp
PrettyTypeDumper.h
PrettyVariableDumper.cpp
PrettyVariableDumper.h
StreamUtil.cpp
StreamUtil.h
TypeReferenceTracker.cpp [llvm-pdbutil] Add -type-ref-stats to help find unused type info 2019-03-21 18:02:34 +00:00
TypeReferenceTracker.h [llvm-pdbutil] Add -type-ref-stats to help find unused type info 2019-03-21 18:02:34 +00:00
YAMLOutputStyle.cpp Slightly simplify MappedBlockStream::createIndexedStream() calls 2019-07-12 18:24:38 +00:00
YAMLOutputStyle.h