Try simplifying LexicalScopes ownership again.
authorDavid Blaikie <dblaikie@gmail.com>
Fri, 2 May 2014 22:21:05 +0000 (22:21 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Fri, 2 May 2014 22:21:05 +0000 (22:21 +0000)
commit10c37a012ea11596d44cd9059fe09c959caf30c8
tree955db5387148bd67f33970646c9229d65f74d4fa
parentc7b30d80a2078d4e3b51efcef1644c3a13f62de8
Try simplifying LexicalScopes ownership again.

Committed initially in r207724-r207726 and reverted due to compiler-rt
crashes in r207732.

Instead, fix this harder with unordered_map and store the LexicalScopes
by value in the map. This did necessitate moving the definition of
LexicalScope above the definition of LexicalScopes.

Let's see how the buildbots/compilers tolerate unordered_map::emplace +
std::piecewise_construct + std::forward_as_tuple...

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207876 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/LexicalScopes.h
lib/CodeGen/LexicalScopes.cpp