diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2013-08-09 14:44:41 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2013-08-09 14:44:41 +0000 |
commit | b0e8d37240835c68357be061de5f2e5fb69dd7ac (patch) | |
tree | 7a7d9e852bb43e51d141d4ffc41f0df9cc2ef7c4 | |
parent | 04b03fac11f10c92cf7ce63ba2f548a42ee2c448 (diff) | |
download | external_llvm-b0e8d37240835c68357be061de5f2e5fb69dd7ac.zip external_llvm-b0e8d37240835c68357be061de5f2e5fb69dd7ac.tar.gz external_llvm-b0e8d37240835c68357be061de5f2e5fb69dd7ac.tar.bz2 |
Make helper static and fix formatting.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188074 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/Analysis.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/CodeGen/Analysis.cpp b/lib/CodeGen/Analysis.cpp index ca08b5b..d8f6704 100644 --- a/lib/CodeGen/Analysis.cpp +++ b/lib/CodeGen/Analysis.cpp @@ -382,9 +382,8 @@ static bool indexReallyValid(CompositeType *T, unsigned Idx) { /// function again on a finished iterator will repeatedly return /// false. SubTypes.back()->getTypeAtIndex(Path.back()) is either an empty /// aggregate or a non-aggregate -static bool -advanceToNextLeafType(SmallVectorImpl<CompositeType *> &SubTypes, - SmallVectorImpl<unsigned> &Path) { +static bool advanceToNextLeafType(SmallVectorImpl<CompositeType *> &SubTypes, + SmallVectorImpl<unsigned> &Path) { // First march back up the tree until we can successfully increment one of the // coordinates in Path. while (!Path.empty() && !indexReallyValid(SubTypes.back(), Path.back() + 1)) { @@ -454,8 +453,8 @@ static bool firstRealType(Type *Next, /// Set the iterator data-structures to the next non-empty, non-aggregate /// subtype. -bool nextRealType(SmallVectorImpl<CompositeType *> &SubTypes, - SmallVectorImpl<unsigned> &Path) { +static bool nextRealType(SmallVectorImpl<CompositeType *> &SubTypes, + SmallVectorImpl<unsigned> &Path) { do { if (!advanceToNextLeafType(SubTypes, Path)) return false; |