Avoiding functions in dynamic library

Hello Everyone,

Is there any way in llvm by which I can avoid functions defined in dynamic library in my llvm function pass. I am interested in functions defined only in application, not in the dynamic library. One way is to add functions name in a file and iterate over only those functions but its very cumbersome as my application consists of many mangled functions.

Any help would be much appreciated.

Regards,
Sangeeta