blob: d06821bdfcce7a43abd9ca3c4c3ea92dbdcccea0 [file] [log] [blame]
Devang Patel103b8e62011-08-10 19:04:06 +00001//===- LexicalScopes.cpp - Collecting lexical scope info ------------------===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10// This file implements LexicalScopes analysis.
11//
12// This pass collects lexical scope information and maps machine instructions
13// to respective lexical scopes.
14//
15//===----------------------------------------------------------------------===//
16
Chandler Carruthe3e43d92017-06-06 11:49:48 +000017#include "llvm/CodeGen/LexicalScopes.h"
Eugene Zelenkoad3a5402017-02-17 21:43:25 +000018#include "llvm/ADT/DenseMap.h"
19#include "llvm/ADT/SmallVector.h"
Eugene Zelenkoad3a5402017-02-17 21:43:25 +000020#include "llvm/CodeGen/MachineBasicBlock.h"
Devang Patel103b8e62011-08-10 19:04:06 +000021#include "llvm/CodeGen/MachineFunction.h"
22#include "llvm/CodeGen/MachineInstr.h"
Nico Weber0f38c602018-04-30 14:59:11 +000023#include "llvm/Config/llvm-config.h"
Eugene Zelenkoad3a5402017-02-17 21:43:25 +000024#include "llvm/IR/DebugInfoMetadata.h"
25#include "llvm/IR/Metadata.h"
26#include "llvm/Support/Casting.h"
27#include "llvm/Support/Compiler.h"
Devang Patel103b8e62011-08-10 19:04:06 +000028#include "llvm/Support/Debug.h"
Eugene Zelenkoad3a5402017-02-17 21:43:25 +000029#include "llvm/Support/raw_ostream.h"
30#include <cassert>
31#include <string>
32#include <tuple>
33#include <utility>
34
Devang Patel103b8e62011-08-10 19:04:06 +000035using namespace llvm;
36
Chandler Carruth8677f2f2014-04-22 02:02:50 +000037#define DEBUG_TYPE "lexicalscopes"
38
Eric Christopherb88a94f2013-11-20 00:54:28 +000039/// reset - Reset the instance so that it's prepared for another function.
40void LexicalScopes::reset() {
Craig Topper4ba84432014-04-14 00:51:57 +000041 MF = nullptr;
42 CurrentFnLexicalScope = nullptr;
David Blaikiebccff0f2014-05-08 22:24:51 +000043 LexicalScopeMap.clear();
44 AbstractScopeMap.clear();
Devang Patel103b8e62011-08-10 19:04:06 +000045 InlinedLexicalScopeMap.clear();
46 AbstractScopesList.clear();
47}
48
49/// initialize - Scan machine function and constuct lexical scope nest.
50void LexicalScopes::initialize(const MachineFunction &Fn) {
Wolfgang Pieba6df1e52017-07-19 19:36:40 +000051 reset();
Teresa Johnson06409032017-02-17 00:21:19 +000052 // Don't attempt any lexical scope creation for a NoDebug compile unit.
Matthias Braund3181392017-12-15 22:22:58 +000053 if (Fn.getFunction().getSubprogram()->getUnit()->getEmissionKind() ==
Teresa Johnson06409032017-02-17 00:21:19 +000054 DICompileUnit::NoDebug)
55 return;
Devang Patel103b8e62011-08-10 19:04:06 +000056 MF = &Fn;
57 SmallVector<InsnRange, 4> MIRanges;
58 DenseMap<const MachineInstr *, LexicalScope *> MI2ScopeMap;
59 extractLexicalScopes(MIRanges, MI2ScopeMap);
60 if (CurrentFnLexicalScope) {
61 constructScopeNest(CurrentFnLexicalScope);
62 assignInstructionRanges(MIRanges, MI2ScopeMap);
63 }
64}
65
66/// extractLexicalScopes - Extract instruction ranges for each lexical scopes
67/// for the given machine function.
Eric Christopher73a69d62013-11-20 00:54:19 +000068void LexicalScopes::extractLexicalScopes(
69 SmallVectorImpl<InsnRange> &MIRanges,
70 DenseMap<const MachineInstr *, LexicalScope *> &MI2ScopeMap) {
Devang Patel103b8e62011-08-10 19:04:06 +000071 // Scan each instruction and create scopes. First build working set of scopes.
Alexey Samsonov4aef7272014-04-30 18:29:51 +000072 for (const auto &MBB : *MF) {
Craig Topper4ba84432014-04-14 00:51:57 +000073 const MachineInstr *RangeBeginMI = nullptr;
74 const MachineInstr *PrevMI = nullptr;
Duncan P. N. Exon Smithe56023a2015-04-29 16:38:44 +000075 const DILocation *PrevDL = nullptr;
Alexey Samsonov84678122014-04-30 22:17:38 +000076 for (const auto &MInsn : MBB) {
Devang Patel103b8e62011-08-10 19:04:06 +000077 // Check if instruction has valid location information.
Duncan P. N. Exon Smithe56023a2015-04-29 16:38:44 +000078 const DILocation *MIDL = MInsn.getDebugLoc();
Duncan P. N. Exon Smith3637bab2015-03-30 19:14:47 +000079 if (!MIDL) {
Alexey Samsonov84678122014-04-30 22:17:38 +000080 PrevMI = &MInsn;
Devang Patel103b8e62011-08-10 19:04:06 +000081 continue;
82 }
83
84 // If scope has not changed then skip this instruction.
85 if (MIDL == PrevDL) {
Alexey Samsonov84678122014-04-30 22:17:38 +000086 PrevMI = &MInsn;
Devang Patel103b8e62011-08-10 19:04:06 +000087 continue;
88 }
89
Adrian Prantl14a1dd12017-05-22 20:47:09 +000090 // Ignore DBG_VALUE and similar instruction that do not contribute to any
91 // instruction in the output.
92 if (MInsn.isMetaInstruction())
Devang Patel103b8e62011-08-10 19:04:06 +000093 continue;
94
95 if (RangeBeginMI) {
96 // If we have already seen a beginning of an instruction range and
97 // current instruction scope does not match scope of first instruction
98 // in this range then create a new instruction range.
99 InsnRange R(RangeBeginMI, PrevMI);
100 MI2ScopeMap[RangeBeginMI] = getOrCreateLexicalScope(PrevDL);
101 MIRanges.push_back(R);
102 }
103
104 // This is a beginning of a new instruction range.
Alexey Samsonov84678122014-04-30 22:17:38 +0000105 RangeBeginMI = &MInsn;
Devang Patel103b8e62011-08-10 19:04:06 +0000106
107 // Reset previous markers.
Alexey Samsonov84678122014-04-30 22:17:38 +0000108 PrevMI = &MInsn;
Devang Patel103b8e62011-08-10 19:04:06 +0000109 PrevDL = MIDL;
110 }
111
112 // Create last instruction range.
Duncan P. N. Exon Smith3637bab2015-03-30 19:14:47 +0000113 if (RangeBeginMI && PrevMI && PrevDL) {
Devang Patel103b8e62011-08-10 19:04:06 +0000114 InsnRange R(RangeBeginMI, PrevMI);
115 MIRanges.push_back(R);
116 MI2ScopeMap[RangeBeginMI] = getOrCreateLexicalScope(PrevDL);
117 }
118 }
119}
120
121/// findLexicalScope - Find lexical scope, either regular or inlined, for the
122/// given DebugLoc. Return NULL if not found.
Duncan P. N. Exon Smithe56023a2015-04-29 16:38:44 +0000123LexicalScope *LexicalScopes::findLexicalScope(const DILocation *DL) {
124 DILocalScope *Scope = DL->getScope();
Eric Christopher73a69d62013-11-20 00:54:19 +0000125 if (!Scope)
Craig Topper4ba84432014-04-14 00:51:57 +0000126 return nullptr;
Eric Christopher6618a242011-10-11 22:59:11 +0000127
128 // The scope that we were created with could have an extra file - which
129 // isn't what we care about in this case.
Amjad Aboud12686212016-04-21 16:58:49 +0000130 Scope = Scope->getNonLexicalBlockFileScope();
Eric Christopher73a69d62013-11-20 00:54:19 +0000131
Duncan P. N. Exon Smith35ff67e2015-03-30 21:54:46 +0000132 if (auto *IA = DL->getInlinedAt()) {
David Blaikieee8af3e2014-05-14 01:08:28 +0000133 auto I = InlinedLexicalScopeMap.find(std::make_pair(Scope, IA));
134 return I != InlinedLexicalScopeMap.end() ? &I->second : nullptr;
135 }
David Blaikiebccff0f2014-05-08 22:24:51 +0000136 return findLexicalScope(Scope);
Devang Patel103b8e62011-08-10 19:04:06 +0000137}
138
139/// getOrCreateLexicalScope - Find lexical scope for the given DebugLoc. If
140/// not available then create new lexical scope.
Duncan P. N. Exon Smithe56023a2015-04-29 16:38:44 +0000141LexicalScope *LexicalScopes::getOrCreateLexicalScope(const DILocalScope *Scope,
142 const DILocation *IA) {
Duncan P. N. Exon Smith497110d2015-03-30 23:47:26 +0000143 if (IA) {
Teresa Johnson06409032017-02-17 00:21:19 +0000144 // Skip scopes inlined from a NoDebug compile unit.
145 if (Scope->getSubprogram()->getUnit()->getEmissionKind() ==
146 DICompileUnit::NoDebug)
147 return getOrCreateLexicalScope(IA);
Devang Patel103b8e62011-08-10 19:04:06 +0000148 // Create an abstract scope for inlined function.
149 getOrCreateAbstractScope(Scope);
150 // Create an inlined scope for inlined function.
Duncan P. N. Exon Smith497110d2015-03-30 23:47:26 +0000151 return getOrCreateInlinedScope(Scope, IA);
Devang Patel103b8e62011-08-10 19:04:06 +0000152 }
Eric Christopher73a69d62013-11-20 00:54:19 +0000153
Devang Patel103b8e62011-08-10 19:04:06 +0000154 return getOrCreateRegularScope(Scope);
155}
156
157/// getOrCreateRegularScope - Find or create a regular lexical scope.
Duncan P. N. Exon Smith62e3e382015-03-30 23:21:21 +0000158LexicalScope *
Duncan P. N. Exon Smithe56023a2015-04-29 16:38:44 +0000159LexicalScopes::getOrCreateRegularScope(const DILocalScope *Scope) {
Amjad Aboud12686212016-04-21 16:58:49 +0000160 assert(Scope && "Invalid Scope encoding!");
161 Scope = Scope->getNonLexicalBlockFileScope();
Eric Christopher73a69d62013-11-20 00:54:19 +0000162
David Blaikiebccff0f2014-05-08 22:24:51 +0000163 auto I = LexicalScopeMap.find(Scope);
164 if (I != LexicalScopeMap.end())
165 return &I->second;
Devang Patel103b8e62011-08-10 19:04:06 +0000166
Duncan P. N. Exon Smithe56023a2015-04-29 16:38:44 +0000167 // FIXME: Should the following dyn_cast be DILexicalBlock?
Craig Topper4ba84432014-04-14 00:51:57 +0000168 LexicalScope *Parent = nullptr;
Duncan P. N. Exon Smithe56023a2015-04-29 16:38:44 +0000169 if (auto *Block = dyn_cast<DILexicalBlockBase>(Scope))
Duncan P. N. Exon Smith497110d2015-03-30 23:47:26 +0000170 Parent = getOrCreateLexicalScope(Block->getScope());
Aaron Ballman7fcd7452015-02-16 18:21:19 +0000171 I = LexicalScopeMap.emplace(std::piecewise_construct,
172 std::forward_as_tuple(Scope),
Duncan P. N. Exon Smith62e3e382015-03-30 23:21:21 +0000173 std::forward_as_tuple(Parent, Scope, nullptr,
174 false)).first;
David Blaikiebccff0f2014-05-08 22:24:51 +0000175
David Blaikied661fde2014-10-14 18:22:52 +0000176 if (!Parent) {
Matthias Braund3181392017-12-15 22:22:58 +0000177 assert(cast<DISubprogram>(Scope)->describes(&MF->getFunction()));
David Blaikied661fde2014-10-14 18:22:52 +0000178 assert(!CurrentFnLexicalScope);
David Blaikiebccff0f2014-05-08 22:24:51 +0000179 CurrentFnLexicalScope = &I->second;
David Blaikied661fde2014-10-14 18:22:52 +0000180 }
Eric Christopher73a69d62013-11-20 00:54:19 +0000181
David Blaikiebccff0f2014-05-08 22:24:51 +0000182 return &I->second;
Devang Patel103b8e62011-08-10 19:04:06 +0000183}
184
185/// getOrCreateInlinedScope - Find or create an inlined lexical scope.
Duncan P. N. Exon Smith62e3e382015-03-30 23:21:21 +0000186LexicalScope *
Duncan P. N. Exon Smithe56023a2015-04-29 16:38:44 +0000187LexicalScopes::getOrCreateInlinedScope(const DILocalScope *Scope,
188 const DILocation *InlinedAt) {
Amjad Aboud12686212016-04-21 16:58:49 +0000189 assert(Scope && "Invalid Scope encoding!");
190 Scope = Scope->getNonLexicalBlockFileScope();
Duncan P. N. Exon Smithe56023a2015-04-29 16:38:44 +0000191 std::pair<const DILocalScope *, const DILocation *> P(Scope, InlinedAt);
David Blaikieee8af3e2014-05-14 01:08:28 +0000192 auto I = InlinedLexicalScopeMap.find(P);
193 if (I != InlinedLexicalScopeMap.end())
David Blaikiebccff0f2014-05-08 22:24:51 +0000194 return &I->second;
Devang Patel103b8e62011-08-10 19:04:06 +0000195
David Blaikieee8af3e2014-05-14 01:08:28 +0000196 LexicalScope *Parent;
Duncan P. N. Exon Smithe56023a2015-04-29 16:38:44 +0000197 if (auto *Block = dyn_cast<DILexicalBlockBase>(Scope))
Duncan P. N. Exon Smith62e3e382015-03-30 23:21:21 +0000198 Parent = getOrCreateInlinedScope(Block->getScope(), InlinedAt);
David Blaikieee8af3e2014-05-14 01:08:28 +0000199 else
Duncan P. N. Exon Smith62e3e382015-03-30 23:21:21 +0000200 Parent = getOrCreateLexicalScope(InlinedAt);
David Blaikieee8af3e2014-05-14 01:08:28 +0000201
Eric Christopher71648d02017-02-14 19:43:50 +0000202 I = InlinedLexicalScopeMap
203 .emplace(std::piecewise_construct, std::forward_as_tuple(P),
204 std::forward_as_tuple(Parent, Scope, InlinedAt, false))
Aaron Ballman7fcd7452015-02-16 18:21:19 +0000205 .first;
David Blaikiebccff0f2014-05-08 22:24:51 +0000206 return &I->second;
Devang Patel103b8e62011-08-10 19:04:06 +0000207}
208
209/// getOrCreateAbstractScope - Find or create an abstract lexical scope.
Duncan P. N. Exon Smith62e3e382015-03-30 23:21:21 +0000210LexicalScope *
Duncan P. N. Exon Smithe56023a2015-04-29 16:38:44 +0000211LexicalScopes::getOrCreateAbstractScope(const DILocalScope *Scope) {
Duncan P. N. Exon Smith62e3e382015-03-30 23:21:21 +0000212 assert(Scope && "Invalid Scope encoding!");
Amjad Aboud12686212016-04-21 16:58:49 +0000213 Scope = Scope->getNonLexicalBlockFileScope();
David Blaikiecec37242014-05-25 18:11:35 +0000214 auto I = AbstractScopeMap.find(Scope);
David Blaikiebccff0f2014-05-08 22:24:51 +0000215 if (I != AbstractScopeMap.end())
216 return &I->second;
Devang Patel103b8e62011-08-10 19:04:06 +0000217
Duncan P. N. Exon Smithe56023a2015-04-29 16:38:44 +0000218 // FIXME: Should the following isa be DILexicalBlock?
Craig Topper4ba84432014-04-14 00:51:57 +0000219 LexicalScope *Parent = nullptr;
Duncan P. N. Exon Smithe56023a2015-04-29 16:38:44 +0000220 if (auto *Block = dyn_cast<DILexicalBlockBase>(Scope))
Duncan P. N. Exon Smith62e3e382015-03-30 23:21:21 +0000221 Parent = getOrCreateAbstractScope(Block->getScope());
222
David Blaikiebccff0f2014-05-08 22:24:51 +0000223 I = AbstractScopeMap.emplace(std::piecewise_construct,
David Blaikiecec37242014-05-25 18:11:35 +0000224 std::forward_as_tuple(Scope),
225 std::forward_as_tuple(Parent, Scope,
David Blaikiebccff0f2014-05-08 22:24:51 +0000226 nullptr, true)).first;
Duncan P. N. Exon Smithe56023a2015-04-29 16:38:44 +0000227 if (isa<DISubprogram>(Scope))
David Blaikiebccff0f2014-05-08 22:24:51 +0000228 AbstractScopesList.push_back(&I->second);
229 return &I->second;
Devang Patel103b8e62011-08-10 19:04:06 +0000230}
231
232/// constructScopeNest
233void LexicalScopes::constructScopeNest(LexicalScope *Scope) {
Eric Christopher73a69d62013-11-20 00:54:19 +0000234 assert(Scope && "Unable to calculate scope dominance graph!");
Devang Patel103b8e62011-08-10 19:04:06 +0000235 SmallVector<LexicalScope *, 4> WorkStack;
236 WorkStack.push_back(Scope);
237 unsigned Counter = 0;
238 while (!WorkStack.empty()) {
239 LexicalScope *WS = WorkStack.back();
Craig Topper9f4c3792013-07-03 04:30:58 +0000240 const SmallVectorImpl<LexicalScope *> &Children = WS->getChildren();
Devang Patel103b8e62011-08-10 19:04:06 +0000241 bool visitedChildren = false;
Adrian Prantl89584ae2016-09-28 17:31:17 +0000242 for (auto &ChildScope : Children)
Devang Patel103b8e62011-08-10 19:04:06 +0000243 if (!ChildScope->getDFSOut()) {
244 WorkStack.push_back(ChildScope);
245 visitedChildren = true;
246 ChildScope->setDFSIn(++Counter);
247 break;
248 }
Devang Patel103b8e62011-08-10 19:04:06 +0000249 if (!visitedChildren) {
250 WorkStack.pop_back();
251 WS->setDFSOut(++Counter);
252 }
253 }
254}
255
Devang Patel5bc942c2011-08-10 23:58:09 +0000256/// assignInstructionRanges - Find ranges of instructions covered by each
257/// lexical scope.
Eric Christopher73a69d62013-11-20 00:54:19 +0000258void LexicalScopes::assignInstructionRanges(
259 SmallVectorImpl<InsnRange> &MIRanges,
260 DenseMap<const MachineInstr *, LexicalScope *> &MI2ScopeMap) {
Craig Topper4ba84432014-04-14 00:51:57 +0000261 LexicalScope *PrevLexicalScope = nullptr;
Adrian Prantl89584ae2016-09-28 17:31:17 +0000262 for (const auto &R : MIRanges) {
Devang Patel103b8e62011-08-10 19:04:06 +0000263 LexicalScope *S = MI2ScopeMap.lookup(R.first);
Eric Christopher73a69d62013-11-20 00:54:19 +0000264 assert(S && "Lost LexicalScope for a machine instruction!");
Devang Patel103b8e62011-08-10 19:04:06 +0000265 if (PrevLexicalScope && !PrevLexicalScope->dominates(S))
266 PrevLexicalScope->closeInsnRange(S);
267 S->openInsnRange(R.first);
268 S->extendInsnRange(R.second);
269 PrevLexicalScope = S;
270 }
271
272 if (PrevLexicalScope)
273 PrevLexicalScope->closeInsnRange();
274}
275
276/// getMachineBasicBlocks - Populate given set using machine basic blocks which
Eric Christopher73a69d62013-11-20 00:54:19 +0000277/// have machine instructions that belong to lexical scope identified by
Devang Patel103b8e62011-08-10 19:04:06 +0000278/// DebugLoc.
Eric Christopher73a69d62013-11-20 00:54:19 +0000279void LexicalScopes::getMachineBasicBlocks(
Duncan P. N. Exon Smithe56023a2015-04-29 16:38:44 +0000280 const DILocation *DL, SmallPtrSetImpl<const MachineBasicBlock *> &MBBs) {
Wolfgang Pieba6df1e52017-07-19 19:36:40 +0000281 assert(MF && "Method called on a uninitialized LexicalScopes object!");
Devang Patel103b8e62011-08-10 19:04:06 +0000282 MBBs.clear();
Wolfgang Pieba6df1e52017-07-19 19:36:40 +0000283
Devang Patel103b8e62011-08-10 19:04:06 +0000284 LexicalScope *Scope = getOrCreateLexicalScope(DL);
285 if (!Scope)
286 return;
Eric Christopher73a69d62013-11-20 00:54:19 +0000287
Devang Patel2e85b1b2011-08-12 18:01:34 +0000288 if (Scope == CurrentFnLexicalScope) {
Alexey Samsonov4aef7272014-04-30 18:29:51 +0000289 for (const auto &MBB : *MF)
290 MBBs.insert(&MBB);
Devang Patel2e85b1b2011-08-12 18:01:34 +0000291 return;
292 }
293
Craig Topper9f4c3792013-07-03 04:30:58 +0000294 SmallVectorImpl<InsnRange> &InsnRanges = Scope->getRanges();
Adrian Prantl89584ae2016-09-28 17:31:17 +0000295 for (auto &R : InsnRanges)
Devang Patel103b8e62011-08-10 19:04:06 +0000296 MBBs.insert(R.first->getParent());
Devang Patel103b8e62011-08-10 19:04:06 +0000297}
298
299/// dominates - Return true if DebugLoc's lexical scope dominates at least one
300/// machine instruction's lexical scope in a given machine basic block.
Duncan P. N. Exon Smithe56023a2015-04-29 16:38:44 +0000301bool LexicalScopes::dominates(const DILocation *DL, MachineBasicBlock *MBB) {
Wolfgang Pieba6df1e52017-07-19 19:36:40 +0000302 assert(MF && "Unexpected uninitialized LexicalScopes object!");
Devang Patel103b8e62011-08-10 19:04:06 +0000303 LexicalScope *Scope = getOrCreateLexicalScope(DL);
304 if (!Scope)
305 return false;
Devang Patel2e85b1b2011-08-12 18:01:34 +0000306
307 // Current function scope covers all basic blocks in the function.
308 if (Scope == CurrentFnLexicalScope && MBB->getParent() == MF)
309 return true;
310
Devang Patel103b8e62011-08-10 19:04:06 +0000311 bool Result = false;
Adrian Prantl89584ae2016-09-28 17:31:17 +0000312 for (auto &I : *MBB) {
313 if (const DILocation *IDL = I.getDebugLoc())
Duncan P. N. Exon Smith1aa1d1a2015-03-30 23:58:59 +0000314 if (LexicalScope *IScope = getOrCreateLexicalScope(IDL))
315 if (Scope->dominates(IScope))
316 return true;
Devang Patel103b8e62011-08-10 19:04:06 +0000317 }
318 return Result;
319}
320
Aaron Ballman1d03d382017-10-15 14:32:27 +0000321#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
Matthias Braun88d20752017-01-28 02:02:38 +0000322LLVM_DUMP_METHOD void LexicalScope::dump(unsigned Indent) const {
Devang Patel103b8e62011-08-10 19:04:06 +0000323 raw_ostream &err = dbgs();
Manman Ren7650d9b2013-02-02 00:02:03 +0000324 err.indent(Indent);
Devang Patel103b8e62011-08-10 19:04:06 +0000325 err << "DFSIn: " << DFSIn << " DFSOut: " << DFSOut << "\n";
326 const MDNode *N = Desc;
Manman Ren7650d9b2013-02-02 00:02:03 +0000327 err.indent(Indent);
Devang Patel103b8e62011-08-10 19:04:06 +0000328 N->dump();
329 if (AbstractScope)
Manman Ren7650d9b2013-02-02 00:02:03 +0000330 err << std::string(Indent, ' ') << "Abstract Scope\n";
Devang Patel103b8e62011-08-10 19:04:06 +0000331
Devang Patel103b8e62011-08-10 19:04:06 +0000332 if (!Children.empty())
Manman Ren7650d9b2013-02-02 00:02:03 +0000333 err << std::string(Indent + 2, ' ') << "Children ...\n";
Devang Patel103b8e62011-08-10 19:04:06 +0000334 for (unsigned i = 0, e = Children.size(); i != e; ++i)
335 if (Children[i] != this)
Manman Ren7650d9b2013-02-02 00:02:03 +0000336 Children[i]->dump(Indent + 2);
Devang Patel103b8e62011-08-10 19:04:06 +0000337}
Matthias Braun88d20752017-01-28 02:02:38 +0000338#endif