search for: trackedrecord

Displaying 2 results from an estimated 2 matches for "trackedrecord".

Did you mean: trackedrecords
2010 Dec 13
0
[LLVMdev] tblgen internals
...ecord better than using "new Record"? If createRecord is better, it would be good to make the Record ctor private so the code doesn't evolve into sometimes using one and sometimes using the other. Some minor coding style things: + RecordKeeper &getRecords() const { + return(TrackedRecords); + } + Record *createRecord(const std::string &N, SMLoc loc) { + return(new Record(N, loc, *this)); + } No need for the parens around the return value. + RecordKeeper& getRecords() { + return(Records); + } + + RecordKeeper& getRecords() const { + return(Records); + }...
2010 Dec 12
2
[LLVMdev] tblgen internals
Hey Chris, The following patch removes all global references to a RecordKeeper instance for the tblgen utility. This effort was motivated by the FIXME remark, in TableGen.cpp. Although a few files were touched, the main change was to Record.h. The patch takes the simple approach of adding a RecordKeeper reference to TGParser, and any needed emitter helper classes. In addition, since some of