mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 07:34:33 +00:00
ignore register #0
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25223 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
35ef913ec2
commit
140e99babc
@ -2078,7 +2078,7 @@ void SDNode::dump(const SelectionDAG *G) const {
|
|||||||
std::cerr << LBB->getName() << " ";
|
std::cerr << LBB->getName() << " ";
|
||||||
std::cerr << (const void*)BBDN->getBasicBlock() << ">";
|
std::cerr << (const void*)BBDN->getBasicBlock() << ">";
|
||||||
} else if (const RegisterSDNode *R = dyn_cast<RegisterSDNode>(this)) {
|
} else if (const RegisterSDNode *R = dyn_cast<RegisterSDNode>(this)) {
|
||||||
if (G && MRegisterInfo::isPhysicalRegister(R->getReg())) {
|
if (G && R->getReg() && MRegisterInfo::isPhysicalRegister(R->getReg())) {
|
||||||
std::cerr << " " <<G->getTarget().getRegisterInfo()->getName(R->getReg());
|
std::cerr << " " <<G->getTarget().getRegisterInfo()->getName(R->getReg());
|
||||||
} else {
|
} else {
|
||||||
std::cerr << " #" << R->getReg();
|
std::cerr << " #" << R->getReg();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user