File tree Expand file tree Collapse file tree 3 files changed +9
-8
lines changed
lib/DebugInfo/LogicalView
test/tools/llvm-debuginfo-analyzer/IR Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,8 @@ void printCollectedElements(LVScope *Root) {
32
32
Entry->print (dbgs ());
33
33
};
34
34
35
- Print (Parent->getChildren ());
35
+ for (LVElement *Element : Parent->getChildren ())
36
+ Element->print (dbgs ());
36
37
Print (Parent->getLines ());
37
38
Print (Parent->getRanges ());
38
39
if (const LVScopes *Scopes = Parent->getScopes ())
Original file line number Diff line number Diff line change @@ -2283,14 +2283,14 @@ void LVIRReader::checkScopes(LVScope *Scope) {
2283
2283
};
2284
2284
2285
2285
std::function<void (LVScope * Parent)> Traverse = [&](LVScope *Current) {
2286
- auto Check = [&](const auto *Set) {
2287
- if (Set)
2288
- for (const auto &Entry : *Set)
2289
- if (!Entry->getIsFinalized ())
2290
- PrintElement (Entry);
2286
+ auto Check = [&](auto *Entry) {
2287
+ if (Entry)
2288
+ if (!Entry->getIsFinalized ())
2289
+ PrintElement (Entry);
2291
2290
};
2292
2291
2293
- Check (Current->getChildren ());
2292
+ for (LVElement *Element : Current->getChildren ())
2293
+ Check (Element);
2294
2294
2295
2295
if (Current->getScopes ())
2296
2296
for (LVScope *Scope : *Current->getScopes ())
Original file line number Diff line number Diff line change 35
35
; ONE-NEXT: [002] 1 {TypeAlias} 'INTPTR' -> '* const int'
36
36
; ONE-NEXT: [002] 2 {Function} extern not_inlined 'foo' -> 'int'
37
37
; ONE-NEXT: [003] {Block}
38
- ; ONE-NEXT: [004] 5 {Variable} 'CONSTANT' -> 'const INTEGER'
39
38
; ONE-NEXT: +[004] 4 {TypeAlias} 'INTEGER' -> 'int'
39
+ ; ONE-NEXT: [004] 5 {Variable} 'CONSTANT' -> 'const INTEGER'
40
40
; ONE-NEXT: [003] 2 {Parameter} 'ParamBool' -> 'bool'
41
41
; ONE-NEXT: [003] 2 {Parameter} 'ParamPtr' -> 'INTPTR'
42
42
; ONE-NEXT: [003] 2 {Parameter} 'ParamUnsigned' -> 'unsigned int'
You can’t perform that action at this time.
0 commit comments