mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-24 13:18:17 +00:00
Add NAME Member
Add a Value named "NAME" to each Record. This will be set to the def or defm name when instantiating multiclasses. This will replace the #NAME# processing hack once paste functionality is in place. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142518 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1686,6 +1686,11 @@ unsigned Record::LastID = 0;
|
||||
|
||||
void Record::init() {
|
||||
checkName();
|
||||
|
||||
// Every record potentially has a def at the top. This value is
|
||||
// replaced with the top-level def name at instantiation time.
|
||||
RecordVal DN("NAME", StringRecTy::get(), 0);
|
||||
addValue(DN);
|
||||
}
|
||||
|
||||
void Record::checkName() {
|
||||
|
||||
Reference in New Issue
Block a user