[LLVMdev] Source file information.

Anton Korobeynikov anton at korobeynikov.info
Fri Jul 10 03:12:03 PDT 2009


> Thanks John it solved my prob.
> In particular, I need to find the file/line info. from .bc file about all
> locations that a specific Function is called. Is there any better way than
> searching all the instructions in runOnModule() during a pass?
Iterate over Function's use chain. See
http://llvm.org/docs/ProgrammersManual.html for some easy examples.

With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University

More information about the llvm-dev mailing list