[llvm-dev] llvm-bcanalyzer - adding a new option

Strahinja Petrovic via llvm-dev llvm-dev at lists.llvm.org
Wed Nov 23 07:14:04 PST 2016


Hi everyone,

I tried to add into llvm-strings tools functionality for dumping strings 
(names of function definitions/declarations, names of global variables) 
from bitcode file (https://reviews.llvm.org/D26959), and Saleem gave me 
advice to move this functionality into llvm-bcanalyzer tool. I'm 
planning to do that, does anyone have comments, advices ?

Example:

$cat test.c
#include <stdio.h>

int main() {
   printf("\n\n\n\nHello world\n\n");
   printf("\n12343254354");
   return 0;
}

$llvm-strings test.bc -print-file-name
test.bc: .str
test.bc: Hello world
test.bc: .str.1
test.bc: 12343254354
test.bc: main
test.bc: printf

Regards,
Strahinja


More information about the llvm-dev mailing list