Apply Linux C++ global/anonymous function call workound to FreeBSD as well

The workaround was introduced in SVN r181613, for http://llvm.org/pr15854

llvm-svn: 190319
This commit is contained in:
Ed Maste 2013-09-09 18:00:45 +00:00
parent 9cf069f60a
commit fc7baa005f
1 changed files with 3 additions and 2 deletions

View File

@ -3736,8 +3736,9 @@ SymbolFileDWARF::FindFunctions (const ConstString &name,
{
FindFunctions (name, m_function_fullname_index, sc_list);
// Temporary workaround for global/anonymous namespace functions on linux
#if defined (__linux__)
// FIXME Temporary workaround for global/anonymous namespace
// functions on FreeBSD and Linux
#if defined (__FreeBSD__) || defined (__linux__)
// If we didn't find any functions in the global namespace try
// looking in the basename index but ignore any returned
// functions that have a namespace (ie. mangled names starting with