llvm.org GIT mirror llvm / bd29073
TableGen: Keep the order of DECL_CONTEXT() for DeclNodes.td. RecordVector may be used instead of RecordSet. The result of DeclNodes.inc was unstable on msys, Windows 7 x64. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129317 91177308-0d34-0410-b5e6-96231b3b80d8 NAKAMURA Takumi 9 years ago
1 changed file(s) with 7 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
154154 }
155155 }
156156
157 for (RecordSet::iterator i = DeclContexts.begin(), e = DeclContexts.end();
158 i != e; ++i) {
159 OS << "DECL_CONTEXT(" << (*i)->getName() << ")\n";
160 }
157 // To keep identical order, RecordVector may be used
158 // instead of RecordSet.
159 for (RecordVector::iterator
160 i = DeclContextsVector.begin(), e = DeclContextsVector.end();
161 i != e; ++i)
162 if (DeclContexts.find(*i) != DeclContexts.end())
163 OS << "DECL_CONTEXT(" << (*i)->getName() << ")\n";
161164
162165 OS << "#undef DECL_CONTEXT\n";
163166 OS << "#undef DECL_CONTEXT_BASE\n";