summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Sparc
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-03-29 03:51:11 +0000
committerChris Lattner <sabre@nondot.org>2002-03-29 03:51:11 +0000
commitff87436f4827a8694d75c760414aa4a38758d9f9 (patch)
tree5aa30bf64f10078b1cf27713c3b4d53bf5043a60 /llvm/lib/Target/Sparc
parent91db58298aa4b717289aa25ad8d0709b1a72a70b (diff)
downloadbcm5719-llvm-ff87436f4827a8694d75c760414aa4a38758d9f9.tar.gz
bcm5719-llvm-ff87436f4827a8694d75c760414aa4a38758d9f9.zip
s/Method/Function
llvm-svn: 2035
Diffstat (limited to 'llvm/lib/Target/Sparc')
-rw-r--r--llvm/lib/Target/Sparc/SparcInternals.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/Sparc/SparcInternals.h b/llvm/lib/Target/Sparc/SparcInternals.h
index 41ad8a911ee..1de5496cbfe 100644
--- a/llvm/lib/Target/Sparc/SparcInternals.h
+++ b/llvm/lib/Target/Sparc/SparcInternals.h
@@ -304,8 +304,9 @@ public:
Type::PrimitiveID ty = type->getPrimitiveID();
unsigned res;
+ // FIXME: Comparing types like this isn't very safe...
if ((ty && ty <= Type::LongTyID) || (ty == Type::LabelTyID) ||
- (ty == Type::MethodTyID) || (ty == Type::PointerTyID) )
+ (ty == Type::FunctionTyID) || (ty == Type::PointerTyID) )
res = IntRegClassID; // sparc int reg (ty=0: void)
else if (ty <= Type::DoubleTyID)
res = FloatRegClassID; // sparc float reg class
OpenPOWER on IntegriCloud