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 | 9c6b60eb28d2717008f8d6ff52f7666ebc81113d (patch) | |
tree | 9fe55b0436d80911758e05f1b1c63b133ef7e147 /utils/TableGen/AsmMatcherEmitter.cpp | |
parent | f722699f8a08e103f79d1074df8168e841933add (diff) | |
download | llvm-9c6b60eb28d2717008f8d6ff52f7666ebc81113d.tar.gz llvm-9c6b60eb28d2717008f8d6ff52f7666ebc81113d.tar.bz2 llvm-9c6b60eb28d2717008f8d6ff52f7666ebc81113d.tar.xz |
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/AsmMatcherEmitter.cpp')
-rw-r--r-- | utils/TableGen/AsmMatcherEmitter.cpp | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/utils/TableGen/AsmMatcherEmitter.cpp b/utils/TableGen/AsmMatcherEmitter.cpp index 4fcd3e211b..48766d1c4d 100644 --- a/utils/TableGen/AsmMatcherEmitter.cpp +++ b/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")) { } |