Commit 5edf067
committed
[TableGen] Inline a helper function that didn't seem necessary. NFC
The function just called find_if and converted the iterator to
an index. The caller then had to check the index being non-zero to
know if the find succeeded.
Seems better to just do the find and distance in the caller.1 parent e240261 commit 5edf067
File tree
2 files changed
+7
-17
lines changed- llvm/utils/TableGen/Common
2 files changed
+7
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
809 | 809 | | |
810 | 810 | | |
811 | 811 | | |
812 | | - | |
813 | | - | |
814 | | - | |
815 | | - | |
816 | | - | |
817 | | - | |
818 | | - | |
819 | | - | |
820 | | - | |
821 | | - | |
822 | | - | |
823 | | - | |
824 | 812 | | |
825 | 813 | | |
826 | 814 | | |
827 | 815 | | |
828 | 816 | | |
829 | 817 | | |
830 | 818 | | |
831 | | - | |
832 | | - | |
833 | | - | |
834 | | - | |
835 | 819 | | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
836 | 827 | | |
837 | 828 | | |
838 | 829 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
592 | 592 | | |
593 | 593 | | |
594 | 594 | | |
595 | | - | |
596 | 595 | | |
597 | 596 | | |
598 | 597 | | |
| |||
0 commit comments