projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add StringRef::compare_numeric and use it to sort TableGen register records.
[oota-llvm.git]
/
utils
/
TableGen
/
Record.h
diff --git
a/utils/TableGen/Record.h
b/utils/TableGen/Record.h
index 576d626e069cd31be434ae9e5b593ab612889028..8f9fd950bb0fc270508ee7e1ac9367001ef746e8 100644
(file)
--- a/
utils/TableGen/Record.h
+++ b/
utils/TableGen/Record.h
@@
-1461,7
+1461,7
@@
public:
///
struct LessRecord {
bool operator()(const Record *Rec1, const Record *Rec2) const {
- return
Rec1->getName() < Rec2->getName()
;
+ return
StringRef(Rec1->getName()).compare_numeric(Rec2->getName()) < 0
;
}
};