[llvm] r207725 - Forgotten reformatting.
David Blaikie
dblaikie at gmail.com
Wed Apr 30 16:42:05 PDT 2014
Author: dblaikie
Date: Wed Apr 30 18:42:04 2014
New Revision: 207725
URL: http://llvm.org/viewvc/llvm-project?rev=207725&view=rev
Log:
Forgotten reformatting.
Modified:
llvm/trunk/lib/CodeGen/LexicalScopes.cpp
Modified: llvm/trunk/lib/CodeGen/LexicalScopes.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/LexicalScopes.cpp?rev=207725&r1=207724&r2=207725&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/LexicalScopes.cpp (original)
+++ llvm/trunk/lib/CodeGen/LexicalScopes.cpp Wed Apr 30 18:42:04 2014
@@ -152,7 +152,8 @@ LexicalScope *LexicalScopes::getOrCreate
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::getOrCreate
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::getOrCreate
/// 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();
}
More information about the llvm-commits
mailing list