OSDN Git Service

lib/Target/SubtargetFeature.cpp asserts that the FeatureKV[] table be sorted
authorJim Grosbach <grosbach@apple.com>
Thu, 11 Sep 2008 17:05:32 +0000 (17:05 +0000)
committerJim Grosbach <grosbach@apple.com>
Thu, 11 Sep 2008 17:05:32 +0000 (17:05 +0000)
commit7c9a7728d9dd248ebee8f2dd969d303711d487a9
tree83394f72c8d240d8b24425c29fcb14356deaf56a
parent1abe60b9be1b7b33e1fa422add5296d392831850
lib/Target/SubtargetFeature.cpp asserts that the FeatureKV[] table be sorted
by its first field, but TableGen doesn't actually enforce creating it that
way. TableGen sorts the records that will be used to create it by the names
of the records, not the Name field of those records.

This patch corrects the sort to use the "Name" field of the record as the
sort key.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56106 91177308-0d34-0410-b5e6-96231b3b80d8
utils/TableGen/Record.h
utils/TableGen/SubtargetEmitter.cpp