Go to file
Richard Smith 05afe5e084 Fix PR10447: lazily building name lookup tables for DeclContexts was broken.
The deferred lookup table building step couldn't accurately tell which Decls
should be included in the lookup table, and consequently built different tables
in some cases.

Fix this by removing lazy building of DeclContext name lookup tables. In
practice, the laziness was frequently not worthwhile in C++, because we
performed lookup into most DeclContexts. In C, it had a bit more value,
since there is no qualified lookup.

In the place of lazy lookup table building, we simply don't build lookup tables
for function DeclContexts at all. Such name lookup tables are not useful, since
they don't capture the scoping information required to correctly perform name
lookup in a function scope.

The resulting performance delta is within the noise on my testing, but appears
to be a very slight win for C++ and a very slight loss for C. The C performance
can probably be recovered (if it is a measurable problem) by avoiding building
the lookup table for the translation unit.

llvm-svn: 152608
2012-03-13 03:12:56 +00:00
clang Fix PR10447: lazily building name lookup tables for DeclContexts was broken. 2012-03-13 03:12:56 +00:00
compiler-rt [asan] output test for memcmp 2012-03-13 01:04:06 +00:00
debuginfo-tests Revert previous patch as the corresponding clang patch was reverted. 2012-01-26 07:01:33 +00:00
libclc Switch to BSD/MIT dual license. 2012-02-22 04:47:39 +00:00
libcxx Fix moneypunct_byname algorithm to more accurately represent C locales in C++. 2012-03-10 18:31:43 +00:00
libcxxabi Enable / silence -Wunused-parameter. 2012-03-09 18:01:37 +00:00
lld Added first round of documentation 2012-03-13 00:10:27 +00:00
lldb Bumped Xcode project versions for lldb-129 and debugserver-179. 2012-03-13 02:26:21 +00:00
llvm Fix regression from r151466: an we can't replace uses of an instruction reachable from the entry block with uses of an instruction not reachable from the entry block. PR12231. 2012-03-13 01:06:07 +00:00
polly Remove FinalRead 2012-03-08 15:21:51 +00:00