This patch extends llvm-bcanalyzer tool with option "-print-fncs-and-globals". It prints function list and list of globals (and values of globals if the values are strings). It has similar output as GNU strings tool just input is LLVM IR file (.bc) instead object file.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Since you mention the GNU strings tool, the way we usually approach this is by providing a full replacement for the tool: i.e. llvm-strings that would work on any file format including bitcode. Are you interested in giving it a shot?
Comment Actions
Initially my idea was to expand llvm-strings tool that works with bitcode file as you said, but I got suggestion to move this functionality to llvm-bcanalyzer ( https://reviews.llvm.org/D26959 ).