Closed shaobo-he closed 4 years ago
Can you double check that you are running latest version of everything. I get correct call graph following exact same commands as you do. I am on OSX using AppleClang for clang
. Perhaps you can include the bitcode file since your compiler might be treating the code differently from mine.
Can you double check that you are running latest version of everything. I get correct call graph following exact same commands as you do. I am on OSX using AppleClang for
clang
. Perhaps you can include the bitcode file since your compiler might be treating the code differently from mine.
Yes, I'm using commit 584fd4d69f4e28b5639f9ff33fcd11e9b0a1dfc5 on a Ubuntu VM. Please see the attached LLVM IR file.
Seems like we don't handle global aliases correctly. On my mac, the globals are converted to a regular assignment.
as a work-around, please remove the alias attribute
Same for me. On OSX it works fine. On Ubuntu, it works only without the alias attribute.
@shaobo-he : I've committed a fix to resolve calls through aliases. Let me know if you still have problems.
@shaobo-he : I've committed a fix to resolve calls through aliases. Let me know if you still have problems.
Thank you, @caballa. It has been resolved. Closed this issue.
Hello sea-dsa developers,
I used the dev10 branch to produce the call graph for the following program. I think it appears incorrect since
main
should call either one of the two functions indirectly.To reproduce, please use the following commands,
This is the call graph I got,
callgraph.pdf