diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-12-15 04:48:22 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-12-15 04:48:22 +0000 |
| commit | 89dcb687bcbf710a888c2a6466321418932a405a (patch) | |
| tree | 1ee4accc1ef9c859588d0212a7e0522393ce111c /llvm/utils/TableGen/AsmMatcherEmitter.cpp | |
| parent | 15317a2f5b3f6e54560b7f884a784b02cd05a021 (diff) | |
| download | bcm5719-llvm-89dcb687bcbf710a888c2a6466321418932a405a.tar.gz bcm5719-llvm-89dcb687bcbf710a888c2a6466321418932a405a.zip | |
various cleanups to tblgen, patch by Garrison Venn!
llvm-svn: 121837
Diffstat (limited to 'llvm/utils/TableGen/AsmMatcherEmitter.cpp')
| -rw-r--r-- | llvm/utils/TableGen/AsmMatcherEmitter.cpp | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/llvm/utils/TableGen/AsmMatcherEmitter.cpp b/llvm/utils/TableGen/AsmMatcherEmitter.cpp index 4fcd3e211bb..48766d1c4d6 100644 --- a/llvm/utils/TableGen/AsmMatcherEmitter.cpp +++ b/llvm/utils/TableGen/AsmMatcherEmitter.cpp @@ -493,7 +493,7 @@ struct SubtargetFeatureInfo { class AsmMatcherInfo { public: /// Tracked Records - RecordKeeper& Records; + RecordKeeper &Records; /// The tablegen AsmParser record. Record *AsmParser; @@ -551,7 +551,7 @@ private: public: AsmMatcherInfo(Record *AsmParser, CodeGenTarget &Target, - RecordKeeper& Records); + RecordKeeper &Records); /// BuildInfo - Construct the various tables used during matching. void BuildInfo(); @@ -565,12 +565,8 @@ public: return I == SubtargetFeatures.end() ? 0 : I->second; } - RecordKeeper& getRecords() { - return(Records); - } - - RecordKeeper& getRecords() const { - return(Records); + RecordKeeper &getRecords() const { + return Records; } }; @@ -1004,7 +1000,7 @@ void AsmMatcherInfo::BuildOperandClasses() { AsmMatcherInfo::AsmMatcherInfo(Record *asmParser, CodeGenTarget &target, - RecordKeeper& records) + RecordKeeper &records) : Records(records), AsmParser(asmParser), Target(target), RegisterPrefix(AsmParser->getValueAsString("RegisterPrefix")) { } |

