aboutsummaryrefslogtreecommitdiffstats
path: root/utils/TableGen/Record.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-12-15 04:48:22 +0000
committerChris Lattner <sabre@nondot.org>2010-12-15 04:48:22 +0000
commit9c6b60eb28d2717008f8d6ff52f7666ebc81113d (patch)
tree9fe55b0436d80911758e05f1b1c63b133ef7e147 /utils/TableGen/Record.h
parentf722699f8a08e103f79d1074df8168e841933add (diff)
downloadexternal_llvm-9c6b60eb28d2717008f8d6ff52f7666ebc81113d.zip
external_llvm-9c6b60eb28d2717008f8d6ff52f7666ebc81113d.tar.gz
external_llvm-9c6b60eb28d2717008f8d6ff52f7666ebc81113d.tar.bz2
various cleanups to tblgen, patch by Garrison Venn!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121837 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/Record.h')
-rw-r--r--utils/TableGen/Record.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/utils/TableGen/Record.h b/utils/TableGen/Record.h
index f8873cf..307594f 100644
--- a/utils/TableGen/Record.h
+++ b/utils/TableGen/Record.h
@@ -1236,8 +1236,8 @@ class Record {
public:
- // Constructs a record. See also RecordKeeper::createRecord.
- explicit Record(const std::string &N, SMLoc loc, RecordKeeper& records) :
+ // Constructs a record.
+ explicit Record(const std::string &N, SMLoc loc, RecordKeeper &records) :
ID(LastID++), Name(N), Loc(loc), TrackedRecords(records) {}
~Record() {}
@@ -1324,7 +1324,7 @@ public:
void resolveReferencesTo(const RecordVal *RV);
RecordKeeper &getRecords() const {
- return(TrackedRecords);
+ return TrackedRecords;
}
void dump() const;
@@ -1466,12 +1466,6 @@ public:
std::vector<Record*>
getAllDerivedDefinitions(const std::string &ClassName) const;
- // allocates and returns a record.
- Record *createRecord(const std::string &N, SMLoc loc) {
- return(new Record(N, loc, *this));
- }
-
-
void dump() const;
};