mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 04:32:19 +00:00
Forgotten reformatting.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207725 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b5b0db911b
commit
d7bee4451b
@ -152,7 +152,8 @@ LexicalScope *LexicalScopes::getOrCreateRegularScope(MDNode *Scope) {
|
|||||||
D = DIDescriptor(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;
|
auto &MapValue = *IterBool.first;
|
||||||
if (!IterBool.second)
|
if (!IterBool.second)
|
||||||
return MapValue.second.get();
|
return MapValue.second.get();
|
||||||
@ -160,7 +161,8 @@ LexicalScope *LexicalScopes::getOrCreateRegularScope(MDNode *Scope) {
|
|||||||
LexicalScope *Parent = nullptr;
|
LexicalScope *Parent = nullptr;
|
||||||
if (D.isLexicalBlock())
|
if (D.isLexicalBlock())
|
||||||
Parent = getOrCreateLexicalScope(DebugLoc::getFromDILexicalBlock(Scope));
|
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() &&
|
if (!Parent && DIDescriptor(Scope).isSubprogram() &&
|
||||||
DISubprogram(Scope).describes(MF->getFunction()))
|
DISubprogram(Scope).describes(MF->getFunction()))
|
||||||
CurrentFnLexicalScope = MapValue.second.get();
|
CurrentFnLexicalScope = MapValue.second.get();
|
||||||
@ -171,13 +173,15 @@ LexicalScope *LexicalScopes::getOrCreateRegularScope(MDNode *Scope) {
|
|||||||
/// getOrCreateInlinedScope - Find or create an inlined lexical scope.
|
/// getOrCreateInlinedScope - Find or create an inlined lexical scope.
|
||||||
LexicalScope *LexicalScopes::getOrCreateInlinedScope(MDNode *Scope,
|
LexicalScope *LexicalScopes::getOrCreateInlinedScope(MDNode *Scope,
|
||||||
MDNode *InlinedAt) {
|
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;
|
auto &MapValue = *IterBool.first;
|
||||||
if (!IterBool.second)
|
if (!IterBool.second)
|
||||||
return MapValue.second.get();
|
return MapValue.second.get();
|
||||||
|
|
||||||
DebugLoc InlinedLoc = DebugLoc::getFromDILocation(InlinedAt);
|
DebugLoc InlinedLoc = DebugLoc::getFromDILocation(InlinedAt);
|
||||||
MapValue.second = make_unique<LexicalScope>(getOrCreateLexicalScope(InlinedLoc),
|
MapValue.second =
|
||||||
|
make_unique<LexicalScope>(getOrCreateLexicalScope(InlinedLoc),
|
||||||
DIDescriptor(Scope), InlinedAt, false);
|
DIDescriptor(Scope), InlinedAt, false);
|
||||||
InlinedLexicalScopeMap[InlinedLoc] = MapValue.second.get();
|
InlinedLexicalScopeMap[InlinedLoc] = MapValue.second.get();
|
||||||
return MapValue.second.get();
|
return MapValue.second.get();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user