summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Sparc
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-04-04 22:19:18 +0000
committerChris Lattner <sabre@nondot.org>2002-04-04 22:19:18 +0000
commite2f2f54f0c3fc0ce063f2d3a181a7a3b4ddbedb0 (patch)
tree2974769e972954dcb30707d7c7aab0ea1d6c661d /llvm/lib/Target/Sparc
parente17c1fde8382a37d86ba9b234dca8c639f06f1c3 (diff)
downloadbcm5719-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.cpp6
-rw-r--r--llvm/lib/Target/Sparc/SparcRegInfo.cpp6
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();
}
OpenPOWER on IntegriCloud