diff options
author | David Blaikie <dblaikie@gmail.com> | 2014-04-30 23:42:04 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2014-04-30 23:42:04 +0000 |
commit | d7bee4451b908b060316fc535801d9d98af9e2b4 (patch) | |
tree | f9549325c4cff3c2f5bae85ef558c20978ead1f2 /lib/CodeGen/LexicalScopes.cpp | |
parent | b5b0db911b4a0ec23cc71009c64da392e0ab4e85 (diff) | |
download | llvm-d7bee4451b908b060316fc535801d9d98af9e2b4.tar.gz llvm-d7bee4451b908b060316fc535801d9d98af9e2b4.tar.bz2 llvm-d7bee4451b908b060316fc535801d9d98af9e2b4.tar.xz |
Forgotten reformatting.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207725 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LexicalScopes.cpp')
-rw-r--r-- | lib/CodeGen/LexicalScopes.cpp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/lib/CodeGen/LexicalScopes.cpp b/lib/CodeGen/LexicalScopes.cpp index 8a7151dcf1..cdc2cb2cc5 100644 --- a/lib/CodeGen/LexicalScopes.cpp +++ b/lib/CodeGen/LexicalScopes.cpp @@ -152,7 +152,8 @@ LexicalScope *LexicalScopes::getOrCreateRegularScope(MDNode *Scope) { D = DIDescriptor(Scope); } - auto IterBool = LexicalScopeMap.insert(std::make_pair(Scope, std::unique_ptr<LexicalScope>())); + auto IterBool = LexicalScopeMap.insert( + std::make_pair(Scope, std::unique_ptr<LexicalScope>())); auto &MapValue = *IterBool.first; if (!IterBool.second) return MapValue.second.get(); @@ -160,7 +161,8 @@ LexicalScope *LexicalScopes::getOrCreateRegularScope(MDNode *Scope) { LexicalScope *Parent = nullptr; if (D.isLexicalBlock()) Parent = getOrCreateLexicalScope(DebugLoc::getFromDILexicalBlock(Scope)); - MapValue.second = make_unique<LexicalScope>(Parent, DIDescriptor(Scope), nullptr, false); + MapValue.second = + make_unique<LexicalScope>(Parent, DIDescriptor(Scope), nullptr, false); if (!Parent && DIDescriptor(Scope).isSubprogram() && DISubprogram(Scope).describes(MF->getFunction())) CurrentFnLexicalScope = MapValue.second.get(); @@ -171,14 +173,16 @@ LexicalScope *LexicalScopes::getOrCreateRegularScope(MDNode *Scope) { /// getOrCreateInlinedScope - Find or create an inlined lexical scope. LexicalScope *LexicalScopes::getOrCreateInlinedScope(MDNode *Scope, MDNode *InlinedAt) { - auto IterBool = LexicalScopeMap.insert(std::make_pair(InlinedAt, std::unique_ptr<LexicalScope>())); + auto IterBool = LexicalScopeMap.insert( + std::make_pair(InlinedAt, std::unique_ptr<LexicalScope>())); auto &MapValue = *IterBool.first; if (!IterBool.second) return MapValue.second.get(); DebugLoc InlinedLoc = DebugLoc::getFromDILocation(InlinedAt); - MapValue.second = make_unique<LexicalScope>(getOrCreateLexicalScope(InlinedLoc), - DIDescriptor(Scope), InlinedAt, false); + MapValue.second = + make_unique<LexicalScope>(getOrCreateLexicalScope(InlinedLoc), + DIDescriptor(Scope), InlinedAt, false); InlinedLexicalScopeMap[InlinedLoc] = MapValue.second.get(); return MapValue.second.get(); } |