Patch to clean up function call pseudos and support the BLA instruction,

which branches to an absolute address.  This is required to support objc
direct dispatch.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24370 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Nate Begeman
2005-11-16 00:48:01 +00:00
parent 427189ad51
commit 422b0cee7a
5 changed files with 31 additions and 20 deletions

View File

@@ -152,6 +152,10 @@ namespace {
TM.getInstrInfo()->isCall(MI->getOpcode()));
}
}
void printAbsAddrOperand(const MachineInstr *MI, unsigned OpNo,
MVT::ValueType VT) {
O << (int)MI->getOperand(OpNo).getImmedValue()*4;
}
void printPICLabel(const MachineInstr *MI, unsigned OpNo,
MVT::ValueType VT) {
// FIXME: should probably be converted to cout.width and cout.fill