mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-23 22:23:00 +00:00
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
This commit is contained in:
@@ -1060,6 +1060,20 @@ std::string Record::getValueAsCode(const std::string &FieldName) const {
|
||||
}
|
||||
|
||||
|
||||
void MultiClass::dump() const {
|
||||
cerr << "Record:\n";
|
||||
Rec.dump();
|
||||
|
||||
cerr << "Defs:\n";
|
||||
for (RecordVector::const_iterator r = DefPrototypes.begin(),
|
||||
rend = DefPrototypes.end();
|
||||
r != rend;
|
||||
++r) {
|
||||
(*r)->dump();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void RecordKeeper::dump() const { cerr << *this; }
|
||||
|
||||
std::ostream &llvm::operator<<(std::ostream &OS, const RecordKeeper &RK) {
|
||||
|
||||
Reference in New Issue
Block a user