diff options
| author | Chris Lattner <sabre@nondot.org> | 2002-04-04 22:19:18 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2002-04-04 22:19:18 +0000 |
| commit | e2f2f54f0c3fc0ce063f2d3a181a7a3b4ddbedb0 (patch) | |
| tree | 2974769e972954dcb30707d7c7aab0ea1d6c661d /llvm/lib/Target/Sparc | |
| parent | e17c1fde8382a37d86ba9b234dca8c639f06f1c3 (diff) | |
| download | bcm5719-llvm-e2f2f54f0c3fc0ce063f2d3a181a7a3b4ddbedb0.tar.gz bcm5719-llvm-e2f2f54f0c3fc0ce063f2d3a181a7a3b4ddbedb0.zip | |
s/MethodType/FunctionType
llvm-svn: 2115
Diffstat (limited to 'llvm/lib/Target/Sparc')
| -rw-r--r-- | llvm/lib/Target/Sparc/SparcInstrSelection.cpp | 6 | ||||
| -rw-r--r-- | llvm/lib/Target/Sparc/SparcRegInfo.cpp | 6 |
2 files changed, 5 insertions, 7 deletions
diff --git a/llvm/lib/Target/Sparc/SparcInstrSelection.cpp b/llvm/lib/Target/Sparc/SparcInstrSelection.cpp index 18b4a0a4278..7b6e597e4dc 100644 --- a/llvm/lib/Target/Sparc/SparcInstrSelection.cpp +++ b/llvm/lib/Target/Sparc/SparcInstrSelection.cpp @@ -327,9 +327,9 @@ ChooseAddInstructionByType(const Type* resultType) MachineOpCode opCode = INVALID_OPCODE; if (resultType->isIntegral() || - resultType->isPointerType() || - resultType->isLabelType() || - isa<MethodType>(resultType) || + isa<PointerType>(resultType) || + isa<FunctionType>(resultType) || + resultType == Type::LabelTy || resultType == Type::BoolTy) { opCode = ADD; diff --git a/llvm/lib/Target/Sparc/SparcRegInfo.cpp b/llvm/lib/Target/Sparc/SparcRegInfo.cpp index 434816e0a6b..8ec23991083 100644 --- a/llvm/lib/Target/Sparc/SparcRegInfo.cpp +++ b/llvm/lib/Target/Sparc/SparcRegInfo.cpp @@ -264,10 +264,8 @@ bool UltraSparcRegInfo::isVarArgCall(const MachineInstr *CallMI) const { const MachineOperand & calleeOp = CallMI->getOperand(0); Value *calleeVal = calleeOp.getVRegValue(); - PointerType *PT = cast<PointerType> (calleeVal->getType()); - MethodType *MT = cast<MethodType>(PT->getElementType()); - - return MT->isVarArg(); + PointerType *PT = cast<PointerType>(calleeVal->getType()); + return cast<FunctionType>(PT->getElementType())->isVarArg(); } |

