mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 21:18:19 +00:00
Compress SimpleValueType lists by sharing.
Many register classes have the same value types. Share the table space. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153764 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -103,7 +103,9 @@ public:
|
||||
|
||||
/// emit - Print out the table as the body of an array initializer.
|
||||
/// Use the Print function to print elements.
|
||||
void emit(raw_ostream &OS, void (*Print)(raw_ostream&, ElemT)) const {
|
||||
void emit(raw_ostream &OS,
|
||||
void (*Print)(raw_ostream&, ElemT),
|
||||
const char *Term = "0") const {
|
||||
assert(Entries && "Call layout() before emit()");
|
||||
for (typename SeqMap::const_iterator I = Seqs.begin(), E = Seqs.end();
|
||||
I != E; ++I) {
|
||||
@@ -113,7 +115,7 @@ public:
|
||||
Print(OS, *SI);
|
||||
OS << ", ";
|
||||
}
|
||||
OS << "0,\n";
|
||||
OS << Term << ",\n";
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user