diff options
-rw-r--r-- | utils/TableGen/Record.h | 3 | ||||
-rw-r--r-- | utils/TableGen/SubtargetEmitter.cpp | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/utils/TableGen/Record.h b/utils/TableGen/Record.h index d597715..90e246e 100644 --- a/utils/TableGen/Record.h +++ b/utils/TableGen/Record.h @@ -1183,7 +1183,8 @@ struct LessRecord { } }; -/// LessRecord - Sorting predicate to sort record pointers by their name field. +/// LessRecordFieldName - Sorting predicate to sort record pointers by their +/// name field. /// struct LessRecordFieldName { bool operator()(const Record *Rec1, const Record *Rec2) const { diff --git a/utils/TableGen/SubtargetEmitter.cpp b/utils/TableGen/SubtargetEmitter.cpp index 9b5f6df..b05b996 100644 --- a/utils/TableGen/SubtargetEmitter.cpp +++ b/utils/TableGen/SubtargetEmitter.cpp @@ -61,7 +61,7 @@ void SubtargetEmitter::FeatureKeyValues(std::ostream &OS) { // Gather and sort all the features std::vector<Record*> FeatureList = Records.getAllDerivedDefinitions("SubtargetFeature"); - std::sort(FeatureList.begin(), FeatureList.end(), LessRecord()); + std::sort(FeatureList.begin(), FeatureList.end(), LessRecordFieldName()); // Begin feature table OS << "// Sorted (by key) array of values for CPU features.\n" |