search for: _an_external_fn

Displaying 2 results from an estimated 2 matches for "_an_external_fn".

2005 Jul 03
2
[LLVMdev] How do you determine whether a function is defined externally to a module ?
How do you determine whether a function is defined externally ? Basically I want a list of external functions but cannot seem to get one. e.g. I want to create the following list for a module EXTERN _printf : NEAR EXTERN _malloc : NEAR EXTERN _an_external_fn : NEAR I have tried all the obvious permutations but cannot seem to get only the extrnally defined symbols. Help, Aaron -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20050703/1047572a/attachment.html>
2005 Jul 03
0
[LLVMdev] How do you determine whether a function is defined externally to a module ?
...aron Gray wrote: > How do you determine whether a function is defined externally ? > Basically I want a list of external functions but cannot seem to get one. > > e.g. I want to create the following list for a module > > EXTERN _printf : NEAR > EXTERN _malloc : NEAR > EXTERN _an_external_fn : NEAR > > I have tried all the obvious permutations but cannot seem to get only the extrnally defined symbols. Something like this should work: for (Module::iterator F = M->begin(), E = M->end(); F != E; ++F) if (F->isExternal()) ... Function* F is external! ... If you ta...