gcov: make profile merging smarter
[official-gcc.git] / libgcc / config / darwin10-unwind-find-enc-func.c
blob67c43757e50bff75622d65e06617c43e59e11db9
1 #include "tconfig.h"
2 #include "tsystem.h"
3 #include "unwind-dw2-fde.h"
5 void *
6 _darwin10_Unwind_FindEnclosingFunction (void *pc)
8 struct dwarf_eh_bases bases;
9 const struct dwarf_fde *fde = _Unwind_Find_FDE (pc-1, &bases);
10 if (fde)
11 return bases.func;
12 return NULL;