mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
Use an enumeration to eliminate data relocations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29249 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -137,7 +137,7 @@ void InstrInfoEmitter::run(std::ostream &OS) {
|
||||
Record *RC = OperandInfo[i];
|
||||
// FIXME: We only care about register operands for now.
|
||||
if (RC && RC->isSubClassOf("RegisterClass"))
|
||||
OS << "{ &" << getQualifiedName(RC) << "RegClass, 0 }, ";
|
||||
OS << "{ " << getQualifiedName(RC) << "RegClassID, 0 }, ";
|
||||
else if (RC && RC->getName() == "ptr_rc")
|
||||
// Ptr value whose register class is resolved via callback.
|
||||
OS << "{ 0, 1 }, ";
|
||||
|
||||
Reference in New Issue
Block a user