[llvm-dev] How to check for system functions within ModulePass during LLVM Instrumentation pass?

Ayush Mittal via llvm-dev llvm-dev at lists.llvm.org
Thu Oct 11 13:53:27 PDT 2018


Gentle reminder..

On Wed, Oct 10, 2018 at 4:53 PM Ayush Mittal <mittalayush89 at gmail.com>
wrote:

> I'm implementing a custom LLVM modulePass, which performs some action on
> functions. I'm using Module::iterator to iterate through the functions in a
> Module. However, I would like to skip these iteration on global systems
> functions ( which are defined in system headers, etc).
> I've done the similar scope limitation in Clang using SourceLocation.
> However, within the modulePass there isn't any Declaration variables to
> get the location.
> Can you please suggest, what would be the best way to do it.
>
> --
> Thanks.
>


-- 
Thanks & Regards,

Ayush Mittal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20181011/26826625/attachment.html>


More information about the llvm-dev mailing list