diff options
author | David Greene <greened@obbligato.org> | 2009-04-24 16:55:41 +0000 |
---|---|---|
committer | David Greene <greened@obbligato.org> | 2009-04-24 16:55:41 +0000 |
commit | d34a73b3b709001c56db68a4d9a84e5d2002b1f0 (patch) | |
tree | e6b18f83f4e8efce6b3b11b73c3eec31327a4477 /utils/TableGen/Record.h | |
parent | 1c2c462d0f993e3575888d5825b9c25348e6e4e8 (diff) | |
download | external_llvm-d34a73b3b709001c56db68a4d9a84e5d2002b1f0.zip external_llvm-d34a73b3b709001c56db68a4d9a84e5d2002b1f0.tar.gz external_llvm-d34a73b3b709001c56db68a4d9a84e5d2002b1f0.tar.bz2 |
Fix multiclass inheritance to limit value resolution to new defs added
by base multiclasses. Do not attempt to alter defs from previous base
multiclasses. This fixes multiple multiclass inheritance.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@69974 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/Record.h')
-rw-r--r-- | utils/TableGen/Record.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/utils/TableGen/Record.h b/utils/TableGen/Record.h index 4aec332..615eceb 100644 --- a/utils/TableGen/Record.h +++ b/utils/TableGen/Record.h @@ -1138,7 +1138,9 @@ struct MultiClass { Record Rec; // Placeholder for template args and Name. typedef std::vector<Record*> RecordVector; RecordVector DefPrototypes; - + + void dump() const; + MultiClass(const std::string &Name, TGLoc Loc) : Rec(Name, Loc) {} }; |