m_decl_objects is not sound when there are multiple instances of an inline function. The reason is that the clang::FunctionDecl is unique to the single abstract origin of all the inlined instances, and has one set of unique variables, but the VariableSP is different for each inlined instance.
The map m_decl_objects was introduced by LLDB r247746 which introduced a test case with some namespace lookups. I am putting this up for review to make sure that this fix (which works fine with that test case) also doesn't break anything else that might have been addressed by m_decl_objects.
We remove this map and all accessors to it because its only purpose was the lookup that's been replaced.