Move iterator_range to a new iterator-utils.h file
authorRichard Sandiford <richard.sandiford@arm.com>
Sun, 13 Dec 2020 10:41:08 +0000 (10:41 +0000)
committerRichard Sandiford <richard.sandiford@arm.com>
Sun, 13 Dec 2020 10:41:08 +0000 (10:41 +0000)
commit1751a78ecafb1d16d4a843dd22e739b8fd1cfede
treedd827511ba1614186f344af7154e36677ce20290
parent6ad972ece13f01f88a699b1a9f784c4166061901
Move iterator_range to a new iterator-utils.h file

A later patch will add more iterator-related utilities.  Rather than
putting them all directly in coretypes.h, it seemed better to add a
new header file, here called "iterator-utils.h".  This preliminary
patch moves the existing iterator_range class there too.

I used the same copyright date range as coretypes.h “just to be sure”.

gcc/
* coretypes.h (iterator_range): Move to...
* iterator-utils.h: ...this new file.
gcc/coretypes.h
gcc/iterator-utils.h [new file with mode: 0644]