Go to file
Greg Clayton 6234a5c863 Centralize the way symbol and functions are looked up by making a Module::LookupInfo class that does all of the heavy lifting.
Background: symbols and functions can be looked up by full mangled name and by basename. SymbolFile and ObjectFile are expected to be able to do the lookups based on full mangled name or by basename, so when the user types something that is incomplete, we must be able to look it up efficiently. For example the user types "a:🅱️:c" as a symbol to set a breakpoint on, we will break this down into a 'lookup "c"' and then weed out N matches down to just the ones that match "a:🅱️:c". Previously this was done manaully in many functions by calling Module::PrepareForFunctionNameLookup(...) and then doing the lookup and manually pruning the results down afterward with duplicated code. Now all places use Module::LookupInfo to do the work in one place.

This allowed me to fix the name lookups to look for "func" with eFunctionNameTypeFull as the "name_type_mask", and correctly weed the results:

"func", "func()", "func(int)", "a::func()", "b::func()", and "a:🅱️:func()" down to just "func", "func()", "func(int)". Previously we would have set 6 breakpoints, now we correctly set just 3. This also extends to the expression parser when it looks up names for functions it needs to not get multiple results so we can call the correct function.

<rdar://problem/24599697> 

llvm-svn: 275281
2016-07-13 17:12:24 +00:00
clang [OpenMP] Initial implementation of parse+sema for clause use_device_ptr of 'target data' 2016-07-13 15:37:16 +00:00
clang-tools-extra [include-fixer] Implement adding missing namespace qualifiers in vim integration. 2016-07-13 16:43:54 +00:00
compiler-rt [RT-ARM] Syntax unified for aeabi_mem* functions 2016-07-13 14:01:15 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc configure: Remove device specific defines 2016-06-17 20:30:50 +00:00
libcxx Constuct a sentry object in istream::readsome, and handle failures appropriately. Fixes PR#28217. 2016-07-13 16:58:48 +00:00
libcxxabi Fix [libcxxabi] Fix warning about uninitialized const member. 2016-06-15 19:59:16 +00:00
libunwind [PATCH] [libunwind][ehabi] Use early returns where possible. 2016-07-08 12:13:31 +00:00
lld [ELF] - Add predefined sections to output sections list in one place. 2016-07-13 14:26:31 +00:00
lldb Centralize the way symbol and functions are looked up by making a Module::LookupInfo class that does all of the heavy lifting. 2016-07-13 17:12:24 +00:00
llgo [llgo] llgoi: separate evaluation from printing 2016-04-25 01:18:20 +00:00
llvm PatchableFunction: Skip pseudos that do not create code 2016-07-13 16:37:29 +00:00
openmp http://reviews.llvm.org/D22134: Implementation of OpenMP 4.5 nonmonotonic schedule modifier 2016-07-11 10:44:57 +00:00
parallel-libs Change mailing list names in README 2016-06-24 22:50:09 +00:00
polly Add accelerator code generation pass skeleton 2016-07-13 15:54:58 +00:00