llvm.org GIT mirror llvm / b0e8d37
Make helper static and fix formatting. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188074 91177308-0d34-0410-b5e6-96231b3b80d8 Benjamin Kramer 6 years ago
1 changed file(s) with 4 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
381381 /// function again on a finished iterator will repeatedly return
382382 /// false. SubTypes.back()->getTypeAtIndex(Path.back()) is either an empty
383383 /// aggregate or a non-aggregate
384 static bool
385 advanceToNextLeafType(SmallVectorImpl &SubTypes,
386 SmallVectorImpl &Path) {
384 static bool advanceToNextLeafType(SmallVectorImpl &SubTypes,
385 SmallVectorImpl &Path) {
387386 // First march back up the tree until we can successfully increment one of the
388387 // coordinates in Path.
389388 while (!Path.empty() && !indexReallyValid(SubTypes.back(), Path.back() + 1)) {
453452
454453 /// Set the iterator data-structures to the next non-empty, non-aggregate
455454 /// subtype.
456 bool nextRealType(SmallVectorImpl &SubTypes,
457 SmallVectorImpl &Path) {
455 static bool nextRealType(SmallVectorImpl &SubTypes,
456 SmallVectorImpl &Path) {
458457 do {
459458 if (!advanceToNextLeafType(SubTypes, Path))
460459 return false;