[cfe-dev] dump contents of a module (.pcm) file

Victor Zverovich via cfe-dev cfe-dev at lists.llvm.org
Mon Aug 6 14:45:10 PDT 2018


How can I dump the contents of a module (.pcm) file in a human-readable
form for debugging? I'd like to at least see the exported symbols.

Precompiled Header and Modules Internals
<https://clang.llvm.org/docs/PCHInternals.html> mentions that the
llvm-objdump utility provides a -raw-clang-ast option but running

  llvm-objdump -raw-clang-ast test.pcm

gives the error:

  The file was not recognized as a valid object file

Thanks,
Victor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20180806/aab010d6/attachment.html>


More information about the cfe-dev mailing list