summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f0e7f76)
raw | patch | inline | side by side (parent: f0e7f76)
author | David Blaikie <dblaikie@gmail.com> | |
Tue, 6 May 2014 03:53:10 +0000 (03:53 +0000) | ||
committer | David Blaikie <dblaikie@gmail.com> | |
Tue, 6 May 2014 03:53:10 +0000 (03:53 +0000) |
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208057 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/LexicalScopes.h | patch | blob | history |
index 89e0287032d80c3c939132a3f1644a020333f861..31d40ff588cc7c1d4a69674016e18d2027c5e65f 100644 (file)
private:
const MachineFunction *MF;
- /// LexicalScopeMap - Tracks the scopes in the current function. Owns the
- /// contained LexicalScope*s.
+ /// LexicalScopeMap - Tracks the scopes in the current function.
+ // Use an unordered_map to ensure value pointer validity over insertion.
std::unordered_map<const MDNode *, LexicalScope> LexicalScopeMap;
/// InlinedLexicalScopeMap - Tracks inlined function scopes in current
DenseMap<DebugLoc, LexicalScope *> InlinedLexicalScopeMap;
/// AbstractScopeMap - These scopes are not included LexicalScopeMap.
- /// AbstractScopes owns its LexicalScope*s.
+ // Use an unordered_map to ensure value pointer validity over insertion.
std::unordered_map<const MDNode *, LexicalScope> AbstractScopeMap;
/// AbstractScopesList - Tracks abstract scopes constructed while processing