diff options
author | Daniel Dunbar <daniel@zuster.org> | 2008-10-03 17:11:57 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2008-10-03 17:11:57 +0000 |
commit | 489032a2b75f520cf73a53b79dc61792076eb95e (patch) | |
tree | 40761ff3ce49161cea05abda3a3449ebe7c6762b /lib/ExecutionEngine | |
parent | da8ac5fd9130b70b61be61e4819faa8d842d708f (diff) | |
download | external_llvm-489032a2b75f520cf73a53b79dc61792076eb95e.zip external_llvm-489032a2b75f520cf73a53b79dc61792076eb95e.tar.gz external_llvm-489032a2b75f520cf73a53b79dc61792076eb95e.tar.bz2 |
Unbreak build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57017 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine')
-rw-r--r-- | lib/ExecutionEngine/JIT/JITDwarfEmitter.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/lib/ExecutionEngine/JIT/JITDwarfEmitter.cpp b/lib/ExecutionEngine/JIT/JITDwarfEmitter.cpp index 6fa40c7..cb37bb6 100644 --- a/lib/ExecutionEngine/JIT/JITDwarfEmitter.cpp +++ b/lib/ExecutionEngine/JIT/JITDwarfEmitter.cpp @@ -101,13 +101,13 @@ JITDwarfEmitter::EmitFrameMoves(intptr_t BaseLabelPtr, } // If advancing cfa. - if (Dst.isRegister() && Dst.getRegister() == MachineLocation::VirtualFP) { - if (!Src.isRegister()) { - if (Src.getRegister() == MachineLocation::VirtualFP) { + if (Dst.isReg() && Dst.getReg() == MachineLocation::VirtualFP) { + if (!Src.isReg()) { + if (Src.getReg() == MachineLocation::VirtualFP) { MCE->emitByte(dwarf::DW_CFA_def_cfa_offset); } else { MCE->emitByte(dwarf::DW_CFA_def_cfa); - MCE->emitULEB128Bytes(RI->getDwarfRegNum(Src.getRegister(), true)); + MCE->emitULEB128Bytes(RI->getDwarfRegNum(Src.getReg(), true)); } int Offset = -Src.getOffset(); @@ -116,16 +116,16 @@ JITDwarfEmitter::EmitFrameMoves(intptr_t BaseLabelPtr, } else { assert(0 && "Machine move no supported yet."); } - } else if (Src.isRegister() && - Src.getRegister() == MachineLocation::VirtualFP) { - if (Dst.isRegister()) { + } else if (Src.isReg() && + Src.getReg() == MachineLocation::VirtualFP) { + if (Dst.isReg()) { MCE->emitByte(dwarf::DW_CFA_def_cfa_register); - MCE->emitULEB128Bytes(RI->getDwarfRegNum(Dst.getRegister(), true)); + MCE->emitULEB128Bytes(RI->getDwarfRegNum(Dst.getReg(), true)); } else { assert(0 && "Machine move no supported yet."); } } else { - unsigned Reg = RI->getDwarfRegNum(Src.getRegister(), true); + unsigned Reg = RI->getDwarfRegNum(Src.getReg(), true); int Offset = Dst.getOffset() / stackGrowth; if (Offset < 0) { @@ -775,13 +775,13 @@ JITDwarfEmitter::GetFrameMovesSizeInBytes(intptr_t BaseLabelPtr, } // If advancing cfa. - if (Dst.isRegister() && Dst.getRegister() == MachineLocation::VirtualFP) { - if (!Src.isRegister()) { - if (Src.getRegister() == MachineLocation::VirtualFP) { + if (Dst.isReg() && Dst.getReg() == MachineLocation::VirtualFP) { + if (!Src.isReg()) { + if (Src.getReg() == MachineLocation::VirtualFP) { ++FinalSize; } else { ++FinalSize; - unsigned RegNum = RI->getDwarfRegNum(Src.getRegister(), true); + unsigned RegNum = RI->getDwarfRegNum(Src.getReg(), true); FinalSize += TargetAsmInfo::getULEB128Size(RegNum); } @@ -791,17 +791,17 @@ JITDwarfEmitter::GetFrameMovesSizeInBytes(intptr_t BaseLabelPtr, } else { assert(0 && "Machine move no supported yet."); } - } else if (Src.isRegister() && - Src.getRegister() == MachineLocation::VirtualFP) { - if (Dst.isRegister()) { + } else if (Src.isReg() && + Src.getReg() == MachineLocation::VirtualFP) { + if (Dst.isReg()) { ++FinalSize; - unsigned RegNum = RI->getDwarfRegNum(Dst.getRegister(), true); + unsigned RegNum = RI->getDwarfRegNum(Dst.getReg(), true); FinalSize += TargetAsmInfo::getULEB128Size(RegNum); } else { assert(0 && "Machine move no supported yet."); } } else { - unsigned Reg = RI->getDwarfRegNum(Src.getRegister(), true); + unsigned Reg = RI->getDwarfRegNum(Src.getReg(), true); int Offset = Dst.getOffset() / stackGrowth; if (Offset < 0) { |