I am trying to get LLVM IR for a file which is linked with some static libararies.
I tried to link using llvm-link
. It just copy the .bc files in one file ( not like native linking).
clang -L$(T_LIB_PATH) -lpthread -emit-llvm
gives an error: emit-llvm can not be used with linking
. When passing -c
option, it gives warning that the linking options were not used.
My main goal is to get .bc file with all resolved symbols and references. How can I achieve that with clang version 3.4.?