I am using llvm-ld to make a library using –link-as-library –disable-opt options. Now I create a test case which invokes a function from this library and link the library in llvm-ld. The compilation unit that library function gets is the one in which the test case is defined and not the one where library function is defined.
This kind of report is probably better filed as a bug than as an email
(where it can get lost). Please file a bug, and attach the relevant
.bc files and how to reproduce the problem; perhaps finding a simpler
test case, if possible.