- extract function infomation from llvm ir
go get -u github.com/umaumax/gollvmir
cat main.ll | gollvmir --format='csv'
gollvmir --format='tsv' main.ll
gollvmir --format='json' main.ll
- add
-g
option to include function information
clang++ -g -emit-llvm main.cpp -c -o main.bc
clang++ -g -emit-llvm main.cpp -c -S -o main.ll
- if you are using llvm
v8.0.0
- you may rewrite code from
github.com/llir/llvm
togithub.com/umaumax/llvm
- you may rewrite code from