mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:32:44 +01:00
fa9d44b037
We have llvm-readobj for dumping CodeView from object files, and llvm-pdbutil has always been more focused on PDB. However, llvm-pdbutil has a lot of useful options for summarizing debug information in aggregate and presenting high level statistical views. Furthermore, it's arguably better as a testing tool since we don't have to write tests to conform to a state-machine like structure where you match multiple lines in succession, each depending on a previous match. llvm-pdbutil dumps much more concisely, so it's possible to use single-line matches in many cases where as with readobj tests you have to use multi-line matches with an implicit state machine. Because of this, I'm adding object file support to llvm-pdbutil. In fact, this mirrors the cvdump tool from Microsoft, which also supports both object files and pdb files. In the future we could perhaps rename this tool llvm-cvutil. In the meantime, this allows us to deep dive into object files the same way we already can with PDB files. llvm-svn: 312358
37 lines
705 B
CMake
37 lines
705 B
CMake
set(LLVM_LINK_COMPONENTS
|
|
BinaryFormat
|
|
DebugInfoCodeView
|
|
DebugInfoMSF
|
|
DebugInfoPDB
|
|
Object
|
|
ObjectYAML
|
|
Support
|
|
)
|
|
|
|
add_llvm_tool(llvm-pdbutil
|
|
Analyze.cpp
|
|
BytesOutputStyle.cpp
|
|
Diff.cpp
|
|
DiffPrinter.cpp
|
|
DumpOutputStyle.cpp
|
|
InputFile.cpp
|
|
llvm-pdbutil.cpp
|
|
FormatUtil.cpp
|
|
LinePrinter.cpp
|
|
MinimalSymbolDumper.cpp
|
|
MinimalTypeDumper.cpp
|
|
PdbYaml.cpp
|
|
PrettyBuiltinDumper.cpp
|
|
PrettyClassDefinitionDumper.cpp
|
|
PrettyClassLayoutGraphicalDumper.cpp
|
|
PrettyCompilandDumper.cpp
|
|
PrettyEnumDumper.cpp
|
|
PrettyExternalSymbolDumper.cpp
|
|
PrettyFunctionDumper.cpp
|
|
PrettyTypeDumper.cpp
|
|
PrettyTypedefDumper.cpp
|
|
PrettyVariableDumper.cpp
|
|
StreamUtil.cpp
|
|
YAMLOutputStyle.cpp
|
|
)
|