diff options
Diffstat (limited to 'llvm/utils/TableGen/SequenceToOffsetTable.h')
-rw-r--r-- | llvm/utils/TableGen/SequenceToOffsetTable.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/utils/TableGen/SequenceToOffsetTable.h b/llvm/utils/TableGen/SequenceToOffsetTable.h index 77a404d..7db39a9 100644 --- a/llvm/utils/TableGen/SequenceToOffsetTable.h +++ b/llvm/utils/TableGen/SequenceToOffsetTable.h @@ -44,7 +44,7 @@ static inline void printChar(raw_ostream &OS, char C) { /// /// @tparam SeqT The sequence container. (vector or string). /// @tparam Less A stable comparator for SeqT elements. -template<typename SeqT, typename Less = std::less<typename SeqT::value_type> > +template <typename SeqT, typename Less = std::less<typename SeqT::value_type>> class SequenceToOffsetTable { typedef typename SeqT::value_type ElemT; @@ -53,8 +53,8 @@ class SequenceToOffsetTable { struct SeqLess { Less L; bool operator()(const SeqT &A, const SeqT &B) const { - return std::lexicographical_compare(A.rbegin(), A.rend(), - B.rbegin(), B.rend(), L); + return std::lexicographical_compare(A.rbegin(), A.rend(), B.rbegin(), + B.rend(), L); } }; @@ -153,15 +153,15 @@ public: /// emit - Print out the table as the body of an array initializer. /// Use the Print function to print elements. - void emit(raw_ostream &OS, - void (*Print)(raw_ostream&, ElemT), + void emit(raw_ostream &OS, void (*Print)(raw_ostream &, ElemT), const char *Term = "0") const { assert((empty() || Entries) && "Call layout() before emit()"); for (typename SeqMap::const_iterator I = Seqs.begin(), E = Seqs.end(); I != E; ++I) { OS << " /* " << I->second << " */ "; for (typename SeqT::const_iterator SI = I->first.begin(), - SE = I->first.end(); SI != SE; ++SI) { + SE = I->first.end(); + SI != SE; ++SI) { Print(OS, *SI); OS << ", "; } |