mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-14 13:07:31 +00:00
Emit this:
static const TargetOperandInfo OperandInfo6[] = { { &PPC32::CRRCRegClass }, { 0 }, }; instead of this: static const TargetOperandInfo OperandInfo6[] = { { PPC32::CRRCRegisterClass }, { 0 }, }; For operand information, which does not require dynamic (startup-time) initialization. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22931 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
60200e5d32
commit
8d30c23d26
@ -136,8 +136,7 @@ void InstrInfoEmitter::run(std::ostream &OS) {
|
||||
OS << "static const TargetOperandInfo OperandInfo" << N << "[] = { ";
|
||||
for (unsigned i = 0, e = OperandInfo.size(); i != e; ++i) {
|
||||
if (Record *RC = OperandInfo[i]) {
|
||||
// FIXME: BAD: REQUIRES RUNTIME INIT
|
||||
OS << "{ " << getQualifiedName(RC) << "RegisterClass }, ";
|
||||
OS << "{ &" << getQualifiedName(RC) << "RegClass }, ";
|
||||
} else {
|
||||
OS << "{ 0 }, ";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user