projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix PR2590 by making PatternSortingPredicate actually be
[oota-llvm.git]
/
utils
/
TableGen
/
Record.h
diff --git
a/utils/TableGen/Record.h
b/utils/TableGen/Record.h
index 45f3072ff0d21c4d0609f7026c6559a2d2ace6d6..90096e98e206003f8fd3314cab627b03a834c574 100644
(file)
--- a/
utils/TableGen/Record.h
+++ b/
utils/TableGen/Record.h
@@
-1225,6
+1225,10
@@
public:
ID(LastID++), Name(N), Loc(loc) {}
~Record() {}
+
+ static unsigned getNewUID() { return LastID++; }
+
+
unsigned getID() const { return ID; }
const std::string &getName() const { return Name; }