[LLVMdev] Need guidance regarding MachineFunctionPass
t.p.northover at gmail.com
Sat Oct 11 14:00:38 PDT 2014
> Kindly tell me if a MachineFunctionPass runs only on some selected
> portions of the .text section. Is there a way to make it run on larger
> portion of the .text section?
Your pass should have access to the vast majority of what LLVM puts in
the text section: every function compiled by LLVM. The linker may put
more things in there (either entire libraries if you're linking
statically, or possibly stubs otherwise).
I'm afraid it's impossible to say exactly what's going on in your case
without more details of what you're seeing and why that differs from
what you expect to see though.
More information about the llvm-dev