summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-04-30 23:42:04 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-04-30 23:42:04 +0000
commit998dedac98a918f03c1d70d5970652db1300344a (patch)
tree86726983c1445be65911034f1071cf68f1704728
parentb36914421b5191692b4a42b071b8bf3de2b1bace (diff)
downloadbcm5719-llvm-998dedac98a918f03c1d70d5970652db1300344a.tar.gz
bcm5719-llvm-998dedac98a918f03c1d70d5970652db1300344a.zip
Forgotten reformatting.
llvm-svn: 207725
-rw-r--r--llvm/lib/CodeGen/LexicalScopes.cpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/LexicalScopes.cpp b/llvm/lib/CodeGen/LexicalScopes.cpp
index 8a7151dcf1f..cdc2cb2cc56 100644
--- a/llvm/lib/CodeGen/LexicalScopes.cpp
+++ b/llvm/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();
}
OpenPOWER on IntegriCloud