<div dir="ltr"><div dir="ltr"><div><span style="color:rgb(36,39,41);font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;font-size:15px">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).</span></div><div><span style="color:rgb(36,39,41);font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;font-size:15px">I've done the similar scope limitation in Clang usingĀ </span><font color="#242729" face="Arial, Helvetica Neue, Helvetica, sans-serif"><span style="font-size:15px">SourceLocation. However, within theĀ </span></font><span style="color:rgb(36,39,41);font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;font-size:15px">modulePass there isn't any Declaration variables to get the location.</span></div><div><span style="color:rgb(36,39,41);font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;font-size:15px">Can you please suggest, what would be the best way to do it.</span></div><div><span style="color:rgb(36,39,41);font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;font-size:15px"><br></span></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Thanks.</div></div></div></div></div>